wxCommandEvent event(wxEVT_COMMAND_BUTTON_CLICKED, wxID_OK);
event.SetEventObject( dialog );
- dialog->GetEventHandler()->ProcessEvent( event );
+ dialog->HandleWindowEvent( event );
}
}
{
wxCommandEvent event(wxEVT_COMMAND_BUTTON_CLICKED, wxID_CANCEL);
event.SetEventObject( dialog );
- dialog->GetEventHandler()->ProcessEvent( event );
+ dialog->HandleWindowEvent( event );
}
}
bool wxFontDialog::DoCreate(wxWindow *parent)
{
- m_needParent = false;
-
parent = GetParentForModalDialog(parent);
if (!PreCreation( parent, wxDefaultPosition, wxDefaultSize ) ||