I use this:
Code: Select all
Connect(wxCLOSE_BOX,wxEVT_COMMAND_MENU_SELECTED,(wxObjectEventFunction)&Frame::OnQuit);
void Frame::OnQuit(wxCommandEvent& event)
{
if(wxMessageBox(wxString(_("Continue closing?"),wxString(_("Please confirm")),wxICON_QUESTION | wxYES_NO) == wxYES){
Close();
}
}
"The dialog "not appears" when i press the x (top-right of the form) but the FORM close even."
can anyone help me please?
what i am doing bad?
...Thanks beforehand