From d42b86211a24243996efbecbc32f8a2ddf38b5ee Mon Sep 17 00:00:00 2001 From: Jaakko Salli Date: Wed, 18 Feb 2009 16:16:24 +0000 Subject: [PATCH] Under wxGTK, always use wxPopupTransientWindow as the popup window, even if UseAltPopupWindow() has been called. Do this because, of all popup window types, only wxPopupTransientWindow is able to have focused child controls when the popup is shown in wxGTK modal dialog. git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@58998 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775 --- src/common/combocmn.cpp | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/src/common/combocmn.cpp b/src/common/combocmn.cpp index 79c50cedac..06b3cf23ce 100644 --- a/src/common/combocmn.cpp +++ b/src/common/combocmn.cpp @@ -77,8 +77,12 @@ // reflected (or something like that - atleast commenting out ->Hide() // seemed to eliminate the position change). +// NB: Let's not be afraid to use wxGTK's wxPopupTransientWindow as a +// 'perfect' popup, as it can succesfully host child controls even in +// popups that are shown in modal dialogs. + #define USE_TRANSIENT_POPUP 1 // Use wxPopupWindowTransient (preferred, if it works properly on platform) -#define TRANSIENT_POPUPWIN_IS_PERFECT 0 // wxPopupTransientWindow works, its child can have focus, and common +#define TRANSIENT_POPUPWIN_IS_PERFECT 1 // wxPopupTransientWindow works, its child can have focus, and common // native controls work on it like normal. #define POPUPWIN_IS_PERFECT 1 // Same, but for non-transient popup window. #define TEXTCTRL_TEXT_CENTERED 1 // 1 if text in textctrl is vertically centered -- 2.45.2