Enable/disable both widgets

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/branches/WX_2_8_BRANCH@58192 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
Julian Smart
2009-01-18 12:29:22 +00:00
parent f4eed492a3
commit 5e5e1badf5

View File

@@ -809,6 +809,8 @@ void WidgetsFrame::OnSetFont(wxCommandEvent& WXUNUSED(event))
void WidgetsFrame::OnEnable(wxCommandEvent& event)
{
CurrentPage()->GetWidget()->Enable(event.IsChecked());
if (CurrentPage()->GetWidget2())
CurrentPage()->GetWidget2()->Enable(event.IsChecked());
}
void WidgetsFrame::OnSetBorder(wxCommandEvent& event)