X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/f58585c091f6ee8e29939ba463d82a5cd96d53a9..3b96fc2f1b64f78bba7c755a5c14f618962f696b:/src/motif/dialog.cpp diff --git a/src/motif/dialog.cpp b/src/motif/dialog.cpp index a7e4fc8aa6..8f234a2f20 100644 --- a/src/motif/dialog.cpp +++ b/src/motif/dialog.cpp @@ -9,10 +9,6 @@ // Licence: wxWindows licence ///////////////////////////////////////////////////////////////////////////// -#if defined(__GNUG__) && !defined(NO_GCC_PRAGMA) -#pragma implementation "dialog.h" -#endif - // For compilers that support precompilation, includes "wx.h". #include "wx/wxprec.h" @@ -151,7 +147,7 @@ bool wxDialog::Create(wxWindow *parent, wxWindowID id, return true; } -bool wxDialog::XmDoCreateTLW(wxWindow* parent, +bool wxDialog::DoCreate(wxWindow* parent, wxWindowID id, const wxString& title, const wxPoint& pos, @@ -196,6 +192,10 @@ bool wxDialog::XmDoCreateTLW(wxWindow* parent, return true; } +void wxDialog::DoDestroy() +{ +} + void wxDialog::SetModal(bool flag) { #ifdef __VMS @@ -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) @@ -362,6 +370,8 @@ void wxDialog::EndModal(int retCode) m_modalShowing = false; m_eventLoop->Exit(); + + SetModal(false); } // Standard buttons