git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@29146 
c3d73ce0-8a6f-49c7-b76d-
6d57e0e08775
     void OnEnableAll(wxCommandEvent& event);
 
     void OnIdle( wxIdleEvent& event );
     void OnEnableAll(wxCommandEvent& event);
 
     void OnIdle( wxIdleEvent& event );
+    void OnIconized( wxIconizeEvent& event );
+    void OnMaximized( wxMaximizeEvent& event );
     void OnSize( wxSizeEvent& event );
     void OnMove( wxMoveEvent& event );
 
     void OnSize( wxSizeEvent& event );
     void OnMove( wxMoveEvent& event );
 
     wxButton *button = new MyButton( panel, ID_LISTBOX_FONT, _T("Set &Italic font"), wxPoint(340,130), wxSize(140,30) );
 
     button->SetDefault();
     wxButton *button = new MyButton( panel, ID_LISTBOX_FONT, _T("Set &Italic font"), wxPoint(340,130), wxSize(140,30) );
 
     button->SetDefault();
     button->SetForegroundColour(*wxBLUE);
 
 #if wxUSE_TOOLTIPS
     button->SetForegroundColour(*wxBLUE);
 
 #if wxUSE_TOOLTIPS
 
     m_checkbox = new wxCheckBox( panel, ID_LISTBOX_ENABLE, _T("&Disable"), wxPoint(20,170) );
     m_checkbox->SetValue(false);
 
     m_checkbox = new wxCheckBox( panel, ID_LISTBOX_ENABLE, _T("&Disable"), wxPoint(20,170) );
     m_checkbox->SetValue(false);
+    button->MoveAfterInTabOrder(m_checkbox);
 #if wxUSE_TOOLTIPS
     m_checkbox->SetToolTip( _T("Click here to disable the listbox") );
 #endif // wxUSE_TOOLTIPS
 #if wxUSE_TOOLTIPS
     m_checkbox->SetToolTip( _T("Click here to disable the listbox") );
 #endif // wxUSE_TOOLTIPS
 
     EVT_MENU(CONTROLS_ENABLE_ALL, MyFrame::OnEnableAll)
 
 
     EVT_MENU(CONTROLS_ENABLE_ALL, MyFrame::OnEnableAll)
 
+    EVT_ICONIZE(MyFrame::OnIconized)
+    EVT_MAXIMIZE(MyFrame::OnMaximized)
     EVT_SIZE(MyFrame::OnSize)
     EVT_MOVE(MyFrame::OnMove)
 
     EVT_SIZE(MyFrame::OnSize)
     EVT_MOVE(MyFrame::OnMove)
 
+void MyFrame::OnIconized( wxIconizeEvent& event )
+{
+    wxLogMessage(_T("Frame %s"), event.Iconized() ? _T("iconized")
+                                                  : _T("restored"));
+    event.Skip();
+}
+
+void MyFrame::OnMaximized( wxMaximizeEvent& WXUNUSED(event) )
+{
+    wxLogMessage(_T("Frame maximized"));
+}
+
 void MyFrame::OnSize( wxSizeEvent& event )
 {
 #if wxUSE_STATUSBAR
 void MyFrame::OnSize( wxSizeEvent& event )
 {
 #if wxUSE_STATUSBAR