From da19de36133c0ddd3ef852c350c430999bbef070 Mon Sep 17 00:00:00 2001 From: Robert Roebling <robert@roebling.de> Date: Fri, 25 Mar 2005 17:23:08 +0000 Subject: [PATCH] Create wxPopUpWindow hidden initially (like MSW, where this happens since it derives from wxTLW, I think). git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@33048 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775 --- src/gtk/popupwin.cpp | 3 +++ src/gtk1/popupwin.cpp | 3 +++ 2 files changed, 6 insertions(+) diff --git a/src/gtk/popupwin.cpp b/src/gtk/popupwin.cpp index f2d3a67520..2ccbf66336 100644 --- a/src/gtk/popupwin.cpp +++ b/src/gtk/popupwin.cpp @@ -181,6 +181,9 @@ bool wxPopupWindow::Create( wxWindow *parent, int style ) return FALSE; } + // Unlike windows, top level windows are created hidden by default. + m_isShown = false; + // All dialogs should really have this style m_windowStyle |= wxTAB_TRAVERSAL; diff --git a/src/gtk1/popupwin.cpp b/src/gtk1/popupwin.cpp index f2d3a67520..2ccbf66336 100644 --- a/src/gtk1/popupwin.cpp +++ b/src/gtk1/popupwin.cpp @@ -181,6 +181,9 @@ bool wxPopupWindow::Create( wxWindow *parent, int style ) return FALSE; } + // Unlike windows, top level windows are created hidden by default. + m_isShown = false; + // All dialogs should really have this style m_windowStyle |= wxTAB_TRAVERSAL; -- 2.47.2