okay, more dumb questions.
i’m setting up a dialog window that shows up on the desktop, is moveable, and has a titlebar, draws its components correctly, etc. but it doesn’t have titlebar buttons/nor resizability.
this is my code:
//==============================================================================
class PreviewWindow : public DialogWindow
{
//==============================================================================
PreviewCanvas* canvas;
public:
//==============================================================================
PreviewWindow() : DialogWindow ( T("Preview"), Colours::lightgrey, true, true )
{
canvas = new PreviewCanvas();
setOpaque (true);
setVisible (true);
centreWithSize(640,480);
toFront (true);
setAlwaysOnTop(true);
setTitleBarButtonsRequired(allButtons, false);
setResizable (true, false);
setContentComponent(canvas);
}
~PreviewWindow()
{
deleteAllChildren();
}
void resized()
{
canvas->setBounds (10, 60, getWidth() - 20, getHeight() - 105);
}
};
my PreviewCanvas is an opengl canvas, but i can strip that out and just have an empty window that still has the same issue.
i’m getting my window by simply calling
previewWindow = new PreviewWindow();
what am i doing wrong?