- wxGenericMessageDialog(wxWindow *parent, const wxString& message,
- const wxString& caption = wxMessageBoxCaptionStr,
- long style = wxOK|wxCENTRE, const wxPoint& pos = wxDefaultPosition);
-
- void OnYes(wxCommandEvent& event);
- void OnNo(wxCommandEvent& event);
- void OnCancel(wxCommandEvent& event);
-
-private:
- wxList m_buttons;
- int m_dialogStyle;
-
-DECLARE_EVENT_TABLE()
-};
+ wxMessageDialog(wxWindow *parent, const wxString& message,
+ const wxString& caption = wxMessageBoxCaptionStr,
+ long style = wxOK|wxCENTRE,
+ const wxPoint& pos = wxDefaultPosition);
+
+ virtual int ShowModal();
+ virtual bool Show(bool WXUNUSED(show) = true) { return false; }
+
+protected:
+ // implement some base class methods to do nothing to avoid asserts and
+ // GTK warnings, since this is not a real wxDialog.
+ virtual void DoSetSize(int WXUNUSED(x), int WXUNUSED(y),
+ int WXUNUSED(width), int WXUNUSED(height),
+ int WXUNUSED(sizeFlags) = wxSIZE_AUTO) {}
+ virtual void DoMoveWindow(int WXUNUSED(x), int WXUNUSED(y),
+ int WXUNUSED(width), int WXUNUSED(height)) {}
+ // override to convert wx mnemonics to GTK+ ones and handle stock ids
+ virtual void DoSetCustomLabel(wxString& var, const ButtonLabel& label);