virtual ~SearchCtrlWidgetsPage(){};
virtual wxControl *GetWidget() const { return m_srchCtrl; }
+ virtual wxTextEntryBase *GetTextEntry() const { return m_srchCtrl; }
virtual void RecreateWidget() { CreateControl(); }
// lazy creation of the content
#endif
IMPLEMENT_WIDGETS_PAGE(SearchCtrlWidgetsPage, _T("SearchCtrl"),
- FAMILY_CTRLS | ALL_CTRLS);
+ FAMILY_CTRLS | EDITABLE_CTRLS | ALL_CTRLS);
SearchCtrlWidgetsPage::SearchCtrlWidgetsPage(WidgetsBookCtrl *book,
wxImageList *imaglist)
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() );
}