def OnToggleSearchButton(self, evt):
- self.search.SetSearchButtonVisible( evt.GetInt() )
+ self.search.ShowSearchButton( evt.GetInt() )
def OnToggleCancelButton(self, evt):
- self.search.SetCancelButtonVisible( evt.GetInt() )
+ self.search.ShowCancelButton( evt.GetInt() )
def OnToggleSearchMenu(self, evt):
if evt.GetInt():
// get/set search options
// ----------------------
- virtual void SetSearchButtonVisible( bool show );
- virtual bool GetSearchButtonVisible() const;
+ virtual void ShowSearchButton( bool show );
+ virtual bool IsSearchButtonVisible() const;
- virtual void SetCancelButtonVisible( bool show );
- virtual bool GetCancelButtonVisible() const;
+ virtual void ShowCancelButton( bool show );
+ virtual bool IsCancelButtonVisible() const;
#ifdef __WXMAC__
%extend {
%property(Menu, GetMenu, SetMenu);
- %property(SearchButtonVisible, GetSearchButtonVisible, SetSearchButtonVisible);
- %property(CancelButtonVisible, GetCancelButtonVisible, SetCancelButtonVisible);
+ %property(SearchButtonVisible, IsSearchButtonVisible, ShowSearchButton);
+ %property(CancelButtonVisible, IsCancelButtonVisible, ShowCancelButton);
};