Useful little fix that automatically hides the busy cursor in modal dialogs.

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@3360 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
Karsten Ballüder
1999-08-12 15:36:50 +00:00
parent 265b457741
commit eebe401675
4 changed files with 30 additions and 7 deletions

View File

@@ -18,6 +18,7 @@
#include "gdk/gdk.h"
#include "gtk/gtk.h"
#include "wx/gtk/win_gtk.h"
#include "wx/cursor.h"
//-----------------------------------------------------------------------------
// idle system
@@ -595,6 +596,8 @@ int wxDialog::ShowModal()
return GetReturnCode();
}
wxBusyCursorSuspender cs; // temporarily suppress the busy cursor
Show( TRUE );
m_modalShowing = TRUE;