X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/2e9f62dafb75dc5baa3800af456d1b0248d85357..cd560c961a09a8ae80b9c32856e195ed784cc547:/src/univ/dialog.cpp?ds=inline diff --git a/src/univ/dialog.cpp b/src/univ/dialog.cpp index 0f5bd56000..cf1d19793b 100644 --- a/src/univ/dialog.cpp +++ b/src/univ/dialog.cpp @@ -153,6 +153,18 @@ bool wxDialog::Show(bool show) EndModal(wxID_CANCEL); } + // Not sure how to put this in platform-specific + // code just yet. Nano-X has to force a size event, + // else there's no initial size. +#if wxUSE_NANOX + if (show) + { + wxSizeEvent event(GetSize(), GetId()); + event.SetEventObject(this); + GetEventHandler()->ProcessEvent(event); + } +#endif + bool ret = wxDialogBase::Show(show); if ( show ) @@ -190,14 +202,17 @@ int wxDialog::ShowModal() } } - wxBusyCursorSuspender cs; // temporarily suppress the busy cursor - Show(TRUE); m_isShowingModal = TRUE; wxASSERT_MSG( !m_windowDisabler, _T("disabling windows twice?") ); +#if defined(__WXGTK__) || defined(__WXMGL__) + wxBusyCursorSuspender suspender; + // FIXME (FIXME_MGL) - make sure busy cursor disappears under MSW too +#endif + m_windowDisabler = new wxWindowDisabler(this); if ( !m_eventLoop ) m_eventLoop = new wxEventLoop;