From: Robert Roebling Date: Fri, 25 Mar 2005 17:23:08 +0000 (+0000) Subject: Create wxPopUpWindow hidden initially (like MSW, where X-Git-Url: https://git.saurik.com/wxWidgets.git/commitdiff_plain/da19de36133c0ddd3ef852c350c430999bbef070 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 --- 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;