From: Steve Brokenshire Date: Thu, 29 Dec 2016 19:43:51 +0000 (+0000) Subject: Menu option for frmAbout now works. X-Git-Tag: release-0.02~57 X-Git-Url: http://Server1/repobrowser/?p=xestiacalendar%2F.git;a=commitdiff_plain;h=748f5ed2b44bc483d8d79a57a207615471214fa6 Menu option for frmAbout now works. --- diff --git a/source/AppXestiaCalendar.cpp b/source/AppXestiaCalendar.cpp index 5ccf62b..bd39f58 100644 --- a/source/AppXestiaCalendar.cpp +++ b/source/AppXestiaCalendar.cpp @@ -74,6 +74,7 @@ frmMainADT::frmMainADT( wxWindow* parent, wxWindowID id, const wxString& title, // Connect Events this->Connect( wxEVT_CLOSE_WINDOW, wxCloseEventHandler( frmMainADT::QuitApp ) ); this->Connect( mnuManageExit->GetId(), wxEVT_COMMAND_MENU_SELECTED, wxCommandEventHandler( frmMainADT::QuitApp ) ); + this->Connect( mnuHelpAbout->GetId(), wxEVT_COMMAND_MENU_SELECTED, wxCommandEventHandler( frmMainADT::ShowAboutWindow ) ); } frmMainADT::~frmMainADT() @@ -81,6 +82,7 @@ frmMainADT::~frmMainADT() // Disconnect Events this->Disconnect( wxEVT_CLOSE_WINDOW, wxCloseEventHandler( frmMainADT::QuitApp ) ); this->Disconnect( wxID_EXIT, wxEVT_COMMAND_MENU_SELECTED, wxCommandEventHandler( frmMainADT::QuitApp ) ); + this->Disconnect( wxID_ABOUT, wxEVT_COMMAND_MENU_SELECTED, wxCommandEventHandler( frmMainADT::ShowAboutWindow ) ); } diff --git a/source/AppXestiaCalendar.h b/source/AppXestiaCalendar.h index 21b70ce..b4623fe 100644 --- a/source/AppXestiaCalendar.h +++ b/source/AppXestiaCalendar.h @@ -59,6 +59,7 @@ class frmMainADT : public wxFrame // Virtual event handlers, overide them in your derived class virtual void QuitApp( wxCloseEvent& event ) { event.Skip(); } virtual void QuitApp( wxCommandEvent& event ) { event.Skip(); } + virtual void ShowAboutWindow( wxCommandEvent& event ) { event.Skip(); } public: