// Licence: wxWindows licence
/////////////////////////////////////////////////////////////////////////////
+// ============================================================================
+// declarations
+// ============================================================================
+
+// ----------------------------------------------------------------------------
+// headers
+// ----------------------------------------------------------------------------
+
#ifdef __GNUG__
-#pragma implementation "univdialog.h"
+ #pragma implementation "univdialog.h"
+#endif
+
+// For compilers that support precompilation, includes "wx.h".
+#include "wx/wxprec.h"
+
+#ifdef __BORLANDC__
+ #pragma hdrstop
+#endif
+
+#ifndef WX_PRECOMP
+ #include "wx/dialog.h"
+ #include "wx/utils.h"
+ #include "wx/app.h"
#endif
-#include "wx/dialog.h"
-#include "wx/utils.h"
#include "wx/evtloop.h"
-#include "wx/app.h"
//-----------------------------------------------------------------------------
// wxDialog
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 )
}
}
- 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;