+ static bool s_enableCheckbox = true;
+ if ( !s_enable )
+ {
+ // this is a test for correct behaviour of either enabling or disabling
+ // a child when its parent is disabled: the checkbox should have the
+ // correct state when the parent is enabled back
+ m_panel->m_checkbox->Enable(s_enableCheckbox);
+ s_enableCheckbox = !s_enableCheckbox;
+ }
+}
+
+void MyFrame::OnHideAll(wxCommandEvent& WXUNUSED(event))
+{
+ static bool s_show = true;
+
+ s_show = !s_show;
+ m_panel->Show(s_show);
+}
+
+void MyFrame::OnHideList(wxCommandEvent& WXUNUSED(event))
+{
+ static bool s_show = true;
+
+ s_show = !s_show;
+ m_panel->m_listbox->Show(s_show);