Merge branch 'gtk-srchctrl'

Add native wxSearchCtrl implementation for wxGTK.

Closes https://github.com/wxWidgets/wxWidgets/pull/1688
This commit is contained in:
Vadim Zeitlin
2020-01-07 02:41:58 +01:00
10 changed files with 595 additions and 25 deletions

View File

@@ -11,6 +11,9 @@
A search control is a composite control with a search button, a text
control, and a cancel button.
This control is implemented natively under macOS and GTK 3.6 or later and
generically for all the other platforms.
@beginStyleTable
@style{wxTE_PROCESS_TAB}
The control will receive @c wxEVT_CHAR events for TAB pressed -
@@ -138,13 +141,21 @@ public:
/**
Shows or hides the cancel button.
Note that this function does nothing in the native GTK version of the
control: "Cancel" button is always shown automatically if the control
is not empty and hidden if it is empty.
*/
virtual void ShowCancelButton(bool show);
/**
Sets the search button visibility value on the search control.
If there is a menu attached, the search button will be visible regardless of
the search button visibility value.
Note that this function does nothing in the native GTK version of the
control: "Search" button is always shown there.
*/
virtual void ShowSearchButton(bool show);