// Licence: wxWindows licence
/////////////////////////////////////////////////////////////////////////////
-#ifdef __GNUG__
+#if defined(__GNUG__) && !defined(NO_GCC_PRAGMA)
#pragma implementation "dialog.h"
#endif
+// For compilers that support precompilation, includes "wx.h".
+#include "wx/wxprec.h"
+
#include "wx/dialog.h"
#include "wx/frame.h"
#include "wx/app.h"
extern bool g_isIdle;
extern int g_openDialogs;
-
-
//-----------------------------------------------------------------------------
// wxDialog
//-----------------------------------------------------------------------------
void wxDialog::SetModal( bool WXUNUSED(flag) )
{
-/*
- if (flag)
- m_windowStyle |= wxDIALOG_MODAL;
- else
- if (m_windowStyle & wxDIALOG_MODAL) m_windowStyle -= wxDIALOG_MODAL;
-*/
wxFAIL_MSG( wxT("wxDialog:SetModal obsolete now") );
}
}
wxBusyCursorSuspender cs; // temporarily suppress the busy cursor
-
+
Show( TRUE );
+ SetFocus();
+
m_modalShowing = TRUE;
g_openDialogs++;