From: Mattia Barbon Date: Sun, 18 Sep 2005 22:48:51 +0000 (+0000) Subject: Send wxInitDialogEvent under wxMotif. X-Git-Url: https://git.saurik.com/wxWidgets.git/commitdiff_plain/b3090d48b4f74b5405b15a74d8e1b8536652b64c Send wxInitDialogEvent under wxMotif. git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@35581 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775 --- 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)