#include "wx/app.h"
#include "wx/log.h"
#include "wx/radiobox.h"
+ #include "wx/statbox.h"
#endif
#include "wx/artprov.h"
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
#define FAMILY_CTRLS GENERIC_CTRLS
#endif
-IMPLEMENT_WIDGETS_PAGE(SearchCtrlWidgetsPage, _T("SearchCtrl"),
- FAMILY_CTRLS | ALL_CTRLS);
+IMPLEMENT_WIDGETS_PAGE(SearchCtrlWidgetsPage, wxT("SearchCtrl"),
+ FAMILY_CTRLS | EDITABLE_CTRLS | ALL_CTRLS);
SearchCtrlWidgetsPage::SearchCtrlWidgetsPage(WidgetsBookCtrl *book,
wxImageList *imaglist)
{
wxMenu* menu = new wxMenu;
const int SEARCH_MENU_SIZE = 5;
- wxMenuItem* menuItem = menu->Append(wxID_ANY, _T("Recent Searches"), wxT(""), wxITEM_NORMAL);
+ wxMenuItem* menuItem = menu->Append(wxID_ANY, wxT("Recent Searches"), wxT(""), wxITEM_NORMAL);
menuItem->Enable(false);
for ( int i = 0; i < SEARCH_MENU_SIZE; i++ )
{
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() );
}