merged in the small changes from the 2.2 branch
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@8891 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
@@ -86,6 +86,13 @@ BEGIN_EVENT_TABLE(MyChild, wxMDIChildFrame)
|
||||
EVT_MENU(MDI_CHILD_QUIT, MyChild::OnQuit)
|
||||
EVT_MENU(MDI_REFRESH, MyChild::OnRefresh)
|
||||
EVT_MENU(MDI_CHANGE_TITLE, MyChild::OnChangeTitle)
|
||||
EVT_MENU(MDI_CHANGE_POSITION, MyChild::OnChangePosition)
|
||||
EVT_MENU(MDI_CHANGE_SIZE, MyChild::OnChangeSize)
|
||||
|
||||
EVT_UPDATE_UI(MDI_REFRESH, MyChild::OnUpdateRefresh)
|
||||
|
||||
EVT_SIZE(MyChild::OnSize)
|
||||
EVT_MOVE(MyChild::OnMove)
|
||||
|
||||
EVT_CLOSE(MyChild::OnClose)
|
||||
END_EVENT_TABLE()
|
||||
@@ -421,6 +428,11 @@ void MyChild::OnQuit(wxCommandEvent& WXUNUSED(event))
|
||||
Close(TRUE);
|
||||
}
|
||||
|
||||
void MyChild::OnUpdateRefresh(wxUpdateUIEvent& event)
|
||||
{
|
||||
event.Enable( canvas && canvas->IsDirty() );
|
||||
}
|
||||
|
||||
void MyChild::OnRefresh(wxCommandEvent& WXUNUSED(event))
|
||||
{
|
||||
if ( canvas )
|
||||
|
Reference in New Issue
Block a user