void MainWindow::makeVisible() { restoreWindowPosition(); setVisible (true); addToDesktop(); // (must add before restoring size so that fullscreen will work) restoreWindowPosition(); getContentComponent()->grabKeyboardFocus(); }
MainWindow* MainWindowList::createNewMainWindow() { auto w = new MainWindow(); windows.add (w); w->restoreWindowPosition(); avoidSuperimposedWindows (w); return w; }
void MainWindow::makeVisible() { setVisible (true); restoreWindowPosition(); addToDesktop(); getContentComponent()->grabKeyboardFocus(); }
FileLocationEditorWindow::FileLocationEditorWindow(int posX, int posY, ApplicationCommandManager* acm, UndoManager& um) : DocumentWindow("File Locations", Colour::greyLevel(0.6f), DocumentWindow::allButtons, true) { setUsingNativeTitleBar (true); setContentOwned(new FileLocationEditor(um, acm), true); restoreWindowPosition(posX, posY); Component::setVisible(true); setResizable(true, false); setWantsKeyboardFocus (false); setResizeLimits(400, 200, 32000, 32000); }