From b3090d48b4f74b5405b15a74d8e1b8536652b64c Mon Sep 17 00:00:00 2001 From: Mattia Barbon Date: Sun, 18 Sep 2005 22:48:51 +0000 Subject: [PATCH] Send wxInitDialogEvent under wxMotif. git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@35581 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775 --- src/motif/dialog.cpp | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/src/motif/dialog.cpp b/src/motif/dialog.cpp index a7e4fc8aa6..dae891831b 100644 --- a/src/motif/dialog.cpp +++ b/src/motif/dialog.cpp @@ -293,6 +293,14 @@ bool wxDialog::Show( bool show ) m_isShown = show; + if (show) + { + // this usually will result in TransferDataToWindow() being called + // which will change the controls values so do it before showing as + // otherwise we could have some flicker + InitDialog(); + } + if (show) { if (!wxUSE_INVISIBLE_RESIZE) -- 2.45.2