Rename wxID_ABOUT menu handler in the grid sample
Use "On" prefix for it for consistency with all the other ones. No real changes.
This commit is contained in:
@@ -325,7 +325,7 @@ wxBEGIN_EVENT_TABLE( GridFrame, wxFrame )
|
|||||||
EVT_MENU( ID_SET_CELL_FG_COLOUR, GridFrame::SetCellFgColour )
|
EVT_MENU( ID_SET_CELL_FG_COLOUR, GridFrame::SetCellFgColour )
|
||||||
EVT_MENU( ID_SET_CELL_BG_COLOUR, GridFrame::SetCellBgColour )
|
EVT_MENU( ID_SET_CELL_BG_COLOUR, GridFrame::SetCellBgColour )
|
||||||
|
|
||||||
EVT_MENU( wxID_ABOUT, GridFrame::About )
|
EVT_MENU( wxID_ABOUT, GridFrame::OnAbout )
|
||||||
EVT_MENU( wxID_EXIT, GridFrame::OnQuit )
|
EVT_MENU( wxID_EXIT, GridFrame::OnQuit )
|
||||||
EVT_MENU( ID_VTABLE, GridFrame::OnVTable)
|
EVT_MENU( ID_VTABLE, GridFrame::OnVTable)
|
||||||
EVT_MENU( ID_BUGS_TABLE, GridFrame::OnBugsTable)
|
EVT_MENU( ID_BUGS_TABLE, GridFrame::OnBugsTable)
|
||||||
@@ -1747,7 +1747,7 @@ void GridFrame::OnEditorHidden( wxGridEvent& ev )
|
|||||||
ev.Skip();
|
ev.Skip();
|
||||||
}
|
}
|
||||||
|
|
||||||
void GridFrame::About( wxCommandEvent& WXUNUSED(ev) )
|
void GridFrame::OnAbout( wxCommandEvent& WXUNUSED(ev) )
|
||||||
{
|
{
|
||||||
wxAboutDialogInfo aboutInfo;
|
wxAboutDialogInfo aboutInfo;
|
||||||
aboutInfo.SetName("wxGrid demo");
|
aboutInfo.SetName("wxGrid demo");
|
||||||
|
@@ -130,7 +130,7 @@ public:
|
|||||||
~GridFrame();
|
~GridFrame();
|
||||||
|
|
||||||
void OnQuit( wxCommandEvent& );
|
void OnQuit( wxCommandEvent& );
|
||||||
void About( wxCommandEvent& );
|
void OnAbout( wxCommandEvent& );
|
||||||
void OnVTable( wxCommandEvent& );
|
void OnVTable( wxCommandEvent& );
|
||||||
void OnBugsTable( wxCommandEvent& );
|
void OnBugsTable( wxCommandEvent& );
|
||||||
void OnTabularTable( wxCommandEvent& );
|
void OnTabularTable( wxCommandEvent& );
|
||||||
|
Reference in New Issue
Block a user