]> git.saurik.com Git - wxWidgets.git/blobdiff - src/univ/dialog.cpp
[this message is for the previous commit as well]
[wxWidgets.git] / src / univ / dialog.cpp
index 4116e83c3db8b6173b73042523f12cc196e61bef..cf1d19793b044fddfcdcb01debd13092609ae960 100644 (file)
@@ -153,6 +153,18 @@ bool wxDialog::Show(bool show)
             EndModal(wxID_CANCEL);
     }
 
             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 ) 
     bool ret = wxDialogBase::Show(show);
 
     if ( show ) 
@@ -196,9 +208,9 @@ int wxDialog::ShowModal()
 
     wxASSERT_MSG( !m_windowDisabler, _T("disabling windows twice?") );
 
 
     wxASSERT_MSG( !m_windowDisabler, _T("disabling windows twice?") );
 
-#ifdef __WXGTK__
+#if defined(__WXGTK__) || defined(__WXMGL__)
     wxBusyCursorSuspender suspender;
     wxBusyCursorSuspender suspender;
-    // FIXME - make sure busy cursor disappears under MSW too
+    // FIXME (FIXME_MGL) - make sure busy cursor disappears under MSW too
 #endif
 
     m_windowDisabler = new wxWindowDisabler(this);
 #endif
 
     m_windowDisabler = new wxWindowDisabler(this);