void CDlgLog::OnClose(wxCloseEvent& event) { myParent->btnShowLogWin->SetValue(false); myParent->btnShowLogWin->Refresh(); event.Skip(); // Continue processing this event }
void WizardFrame::OnClose (wxCloseEvent& event) { if (WorkInProgress) return; Gui->SetActiveFrame (nullptr); event.Skip(); }
void MainFrame::OnClose(wxCloseEvent &event) { if (!SaveWarning()) return; SavePosition(wxT("mainframe")); event.Skip(); }
void wxGenericAboutDialog::OnCloseWindow(wxCloseEvent& event) { // safeguards in case the window is still shown using ShowModal if ( !IsModal() ) Destroy(); event.Skip(); }
void JailbreakMainWindow::OnClose(wxCloseEvent& event) { if (this->closeBlocked) { event.Veto(); } else { event.Skip(); } }
void FieldNameCorrectionDlg::OnClose(wxCloseEvent& ev) { // Note: it seems that if we don't explictly capture the close event // and call Destory, then the destructor is not called. Destroy(); ev.Skip(); }
void wxZRColaFrame::OnClose(wxCloseEvent& event) { event.Skip(); // Save wxAuiManager's state before destructor. // Since the destructor calls m_mgr.UnInit() the regular persistence mechanism is useless to save wxAuiManager's state. wxPersistentAuiManager(&m_mgr).Save(); }
void EditorFrame::OnClose(wxCloseEvent& event) { // Hide the window in advance so the ugly destroy is not seen. Hide(); // Skip the event so the window frame is destroyed. event.Skip(); }
void MerryInformationDialog::OnCloseEvent(wxCloseEvent& e) { if (this->IsModal()) this->EndModal(wxID_CLOSE); else this->Destroy(); e.Skip(); }
void rigoMainFrame::OnCloseWindow( wxCloseEvent& event ) { ////@begin wxEVT_CLOSE_WINDOW event handler for Rigo in rigoMainFrame. // Before editing this code, remove the block markers. event.Skip(); ////@end wxEVT_CLOSE_WINDOW event handler for Rigo in rigoMainFrame. }
void CslApp::OnEndSession(wxCloseEvent& event) { CSL_LOG_DEBUG("\n"); m_shutdown=CSL_SHUTDOWN_FORCE; event.Skip(); }
void AppIQFeedMarketSymbols::OnClose( wxCloseEvent& event ) { // Exit Steps: #2 -> FrameMain::OnClose DelinkFromPanelProviderControl(); // if ( 0 != OnPanelClosing ) OnPanelClosing(); // event.Veto(); // possible call, if needed // event.CanVeto(); // if not a event.Skip(); // auto followed by Destroy(); }
// // Intercept close command // void vtFrame::OnClose(wxCloseEvent &event) { if (m_canvas) { m_canvas->m_bRunning = false; m_bCloseOnIdle = true; } event.Skip(); }
void wxHtmlHelpController::OnCloseFrame(wxCloseEvent& evt) { evt.Skip(); OnQuit(); m_helpFrame->SetController((wxHelpControllerBase*) NULL); m_helpFrame = NULL; }
void AppFrame::OnClose(wxCloseEvent& event) { wxGetApp().getConfig()->setWindow(this->GetPosition(), this->GetClientSize()); wxGetApp().getConfig()->setWindowMaximized(this->IsMaximized()); wxGetApp().getConfig()->setTheme(ThemeMgr::mgr.getTheme()); wxGetApp().getConfig()->setSnap(wxGetApp().getFrequencySnap()); wxGetApp().getConfig()->setCenterFreq(wxGetApp().getFrequency()); wxGetApp().getConfig()->save(); event.Skip(); }
void wxHtmlHelpControllerEx::OnCloseFrame(wxCloseEvent& evt) { evt.Skip(); OnQuit(); m_helpWindow->SetController(NULL); m_helpWindow = NULL; }
void TASInputDlg::OnCloseWindow(wxCloseEvent& event) { if (event.CanVeto()) { event.Skip(false); this->Show(false); ResetValues(); } }
void MyFrame::OnClose(wxCloseEvent& event) { if (m_server) { delete m_server; m_server = NULL; } event.Skip(); }
void wxGD::MainFrame::OnClose( wxCloseEvent &event ) { if( !SaveWarning() ) return; SaveLayout(); event.Skip(); }
void MyFrame::OnClose(wxCloseEvent& event) { if (m_client) { delete m_client; m_client = NULL; } event.Skip(); }
void MainFrame::Closed(wxCloseEvent& event) { if (Quit == false) { if (IsShown()) Hide(); event.Veto(); } else event.Skip(); }
void MyFrame::OnClose(wxCloseEvent& event) { // Close the help frame; this will cause the config data to // get written. if ( help.GetFrame() ) // returns NULL if no help frame active help.GetFrame()->Close(true); // now we can safely delete the config pointer event.Skip(); delete wxConfig::Set(NULL); }
void gcTaskBarIcon::onEventClose(wxCloseEvent& event) { wxGuiDelegateImplementation<wxFrame>* frame = dynamic_cast<wxGuiDelegateImplementation<wxFrame>*>(m_pEvents); if (frame) frame->cleanUpEvents(); m_pEvents = NULL; event.Skip(); }
void MainWindow::OnClose( wxCloseEvent& event ) { wxConfigBase *config = wxConfigBase::Get(); if (config) { config->Write( _("/MainWindow/LastLoadDir"), m_lastLoadDir ); config->Write( _("/MainWindow/LastSaveDir"), m_lastSaveDir ); } event.Skip(); }
/***** Attempt to close should only hide the window except at shutdown. *****/ void tmwxLogFrame::OnClose(wxCloseEvent& event) { if (gApp->IsQuitting()) event.Skip(); else if (event.CanVeto()) { event.Veto(); Hide(); } }
void DecisionLogicFrame::OnClose(wxCloseEvent& event) { if (m_worker) { SaveAndQuit(); delete m_worker; m_worker = NULL; } event.Skip(); }
void gui_frame::onClose(wxCloseEvent& evt) { if (evt.CanVeto()) { evt.Veto(); this->Hide(); } else { evt.Skip(); // don't stop event, we still want window to close } }
void TraceLogFrame::OnCloseWindow( wxCloseEvent& event ) { if (event.CanVeto()) { Show(false); event.Veto(); } else { Destroy(); event.Skip(); } }
/***** Respond to attempt to close a window. *****/ void tmwxDesignFrame::OnClose(wxCloseEvent& event) { // Clear the palettes gApp->SetPalettes(); // Continue processing the event event.Skip(); // Let document manager have a chance at quitting the app if this is the // last document. gDocManager->CheckLastDoc(); }
void frmMain::OnCloseWindow( wxCloseEvent& event ) { // Save frame size and position wxRect rc = GetRect(); g_Config.m_xpos = rc.x; g_Config.m_ypos = rc.y; //g_Config.m_sizeWidth = rc.width; //g_Config.m_sizeHeight = rc.height; event.Skip(); }