-void MyModalDialog::OnContextHelp(wxHelpEvent& event)
-{
- wxString msg;
- switch (event.GetId())
- {
- case wxID_OK:
- {
- msg = _("The OK button confirms the dialog choices.");
- break;
- }
- case wxID_CANCEL:
- {
- msg = _("The Cancel button cancels the dialog.");
- break;
- }
- case wxID_APPLY:
- {
- msg = _("This is a text control that does nothing in particular.");
- break;
- }
- case wxID_CONTEXT_HELP:
- {
- msg = _("If you didn't know what this button is for, why did you press it? :-)");
- break;
- }
- }
- if (!msg.IsEmpty())
- wxMessageBox(msg, _("Help"), wxICON_INFORMATION, this);
-}
-