void AP_UnixDialog_Annotation::runModal(XAP_Frame * pFrame) { UT_return_if_fail(pFrame); // Build the window's widgets and arrange them m_windowMain = _constructWindow(); UT_return_if_fail(m_windowMain); switch(abiRunModalDialog(GTK_DIALOG(m_windowMain), pFrame, this, GTK_RESPONSE_CANCEL, false)) { case GTK_RESPONSE_APPLY: eventApply(); break; case GTK_RESPONSE_OK: eventOK(); break; default: eventCancel(); break ; } abiDestroyWidget(m_windowMain); }
void Wizard::OnCancel(wxCommandEvent&) { WizardEvent eventCancel( wxFB_EVT_WIZARD_CANCEL, GetId(), false, m_page ); GetEventHandler()->ProcessEvent( eventCancel ); }