X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/0bf0b6bb87d7e15e50e0b7e1627ad9ab7af746db..bab4b13d392e0c9663c2c5a09f0dcbc77344ec05:/samples/widgets/searchctrl.cpp diff --git a/samples/widgets/searchctrl.cpp b/samples/widgets/searchctrl.cpp index 3af8ae3e0e..80a95995c8 100644 --- a/samples/widgets/searchctrl.cpp +++ b/samples/widgets/searchctrl.cpp @@ -123,7 +123,7 @@ END_EVENT_TABLE() #endif IMPLEMENT_WIDGETS_PAGE(SearchCtrlWidgetsPage, _T("SearchCtrl"), - FAMILY_CTRLS | ALL_CTRLS); + FAMILY_CTRLS | EDITABLE_CTRLS | ALL_CTRLS); SearchCtrlWidgetsPage::SearchCtrlWidgetsPage(WidgetsBookCtrl *book, wxImageList *imaglist) @@ -204,12 +204,12 @@ wxMenu* SearchCtrlWidgetsPage::CreateTestMenu() void SearchCtrlWidgetsPage::OnToggleSearchButton(wxCommandEvent&) { - m_srchCtrl->SetSearchButtonVisible( m_searchBtnCheck->GetValue() ); + m_srchCtrl->ShowSearchButton( m_searchBtnCheck->GetValue() ); } void SearchCtrlWidgetsPage::OnToggleCancelButton(wxCommandEvent&) { - m_srchCtrl->SetCancelButtonVisible( m_cancelBtnCheck->GetValue() ); + m_srchCtrl->ShowCancelButton( m_cancelBtnCheck->GetValue() ); }