don't use dynamic handlers for standard buttons as this prevents static event handlers in derived classes from working; just catch all button events in a static handler instead

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@40708 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
Vadim Zeitlin
2006-08-20 14:02:51 +00:00
parent 3857173d3c
commit a9f620daf4
2 changed files with 38 additions and 89 deletions

View File

@@ -41,7 +41,7 @@ public:
wxDialogBase() { Init(); }
virtual ~wxDialogBase() { }
// public wxDialog API, to be implemented by the derived classes
// define public wxDialog methods to be implemented by the derived classes
virtual int ShowModal() = 0;
virtual void EndModal(int retCode) = 0;
virtual bool IsModal() const = 0;
@@ -121,9 +121,7 @@ private:
void OnCloseWindow(wxCloseEvent& event);
// handle the standard buttons
void OnAffirmativeButton(wxCommandEvent& event);
void OnApply(wxCommandEvent& event);
void OnCancelButton(wxCommandEvent& event);
void OnButton(wxCommandEvent& event);
// update the background colour
void OnSysColourChanged(wxSysColourChangedEvent& event);