virtual wxControl *GetWidget() const { return m_srchCtrl; }
virtual wxTextEntryBase *GetTextEntry() const { return m_srchCtrl; }
- virtual void RecreateWidget() { CreateControl(); }
+ virtual void RecreateWidget();
// lazy creation of the content
virtual void CreateContent();
// (re)create the control
void CreateControl();
- // reset the control parameters
- void Reset();
-
wxSearchCtrl* m_srchCtrl;
wxCheckBox* m_searchBtnCheck;
{
m_srchCtrl = NULL;
- Reset();
CreateControl();
wxSize(150, -1), style);
}
-void SearchCtrlWidgetsPage::Reset()
+void SearchCtrlWidgetsPage::RecreateWidget()
{
-}
+ CreateControl();
+ GetSizer()->Add(m_srchCtrl, wxSizerFlags().Centre().TripleBorder());
+
+ Layout();
+}
wxMenu* SearchCtrlWidgetsPage::CreateTestMenu()
{