]> git.saurik.com Git - wxWidgets.git/commitdiff
Under wxGTK, always use wxPopupTransientWindow as the popup window, even if UseAltPop...
authorJaakko Salli <jaakko.salli@dnainternet.net>
Wed, 18 Feb 2009 16:16:24 +0000 (16:16 +0000)
committerJaakko Salli <jaakko.salli@dnainternet.net>
Wed, 18 Feb 2009 16:16:24 +0000 (16:16 +0000)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@58998 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

src/common/combocmn.cpp

index 79c50cedacfaee44b9fb012bd4ca14794e4ba4cc..06b3cf23ce1a8580f9ec565e92d7ad5f549e92d6 100644 (file)
 //     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