From 2635360f3c7497e3ebf54240af3a72b5d1af4ae7 Mon Sep 17 00:00:00 2001 From: Vadim Zeitlin Date: Tue, 7 Jan 2020 03:00:15 +0100 Subject: [PATCH] Mention GTK native version in wxSearchCtrl documentation Document some of the (minor) limitations of the native implementation as well as its existence itself. --- interface/wx/srchctrl.h | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/interface/wx/srchctrl.h b/interface/wx/srchctrl.h index 0709cb9e11..aef13bcfec 100644 --- a/interface/wx/srchctrl.h +++ b/interface/wx/srchctrl.h @@ -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);