MainWindow (const String& name) : DocumentWindow (name, Colours::lightgrey, DocumentWindow::allButtons) { setUsingNativeTitleBar (true); setContentOwned (createMainContentComponent(), true); setResizable (true, true); centreWithSize (getWidth(), getHeight()); setVisible (true); }
MainWindow (String name) : DocumentWindow (name, LookAndFeel::getDefaultLookAndFeel() .findColour (ResizableWindow::backgroundColourId), DocumentWindow::allButtons) { setUsingNativeTitleBar (true); setContentOwned (createMainContentComponent(), true); setResizable (true, true); centreWithSize (getWidth(), getHeight()); setVisible (true); }