virtual void ShowCancelButton( bool ) {}
virtual bool IsCancelButtonVisible() const { return false; }
+
+ virtual void SetDescriptiveText(const wxString& text);
+ virtual wxString GetDescriptiveText() const;
};
#endif
%}
"A search control is a composite of a `wx.TextCtrl` with optional
bitmap buttons and a drop-down menu. Controls like this can typically
be found on a toolbar of applications that support some form of search
-functionality. On the Mac this control is implemneted using the
+functionality. On the Mac this control is implemented using the
native HISearchField control, on the other platforms a generic control
is used, although that may change in the future as more platforms
introduce native search widgets.
"Indicates whether the cancel button is visible. ", "");
+ DocDeclStr(
+ virtual void , SetDescriptiveText(const wxString& text),
+ "Set the text to be displayed when the user has not yet typed anything
+in the control.", "");
+
+ DocDeclStr(
+ virtual wxString , GetDescriptiveText() const,
+ "Get the text to be displayed when the user has not yet typed anything
+in the control.", "");
+
+
DocStr(SetSearchBitmap,
"Sets the bitmap to use for the search button. This currently does not
work on the Mac.", "");
DocStr(SetCancelBitmap,
"Sets the bitmap to use for the cancel button. This currently does not
work on the Mac.", "");
+
#ifdef __WXMAC__
%extend {
%property(Menu, GetMenu, SetMenu);
%property(SearchButtonVisible, IsSearchButtonVisible, ShowSearchButton);
%property(CancelButtonVisible, IsCancelButtonVisible, ShowCancelButton);
+ %property(DescriptiveText, GetDescriptiveText, SetDescriptiveText);
};