From 748f5ed2b44bc483d8d79a57a207615471214fa6 Mon Sep 17 00:00:00 2001 From: Steve Brokenshire Date: Thu, 29 Dec 2016 19:43:51 +0000 Subject: [PATCH] Menu option for frmAbout now works. --- source/AppXestiaCalendar.cpp | 2 ++ source/AppXestiaCalendar.h | 1 + 2 files changed, 3 insertions(+) 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: -- 2.39.5