]>
git.saurik.com Git - wxWidgets.git/blob - interface/wx/busyinfo.h
1 /////////////////////////////////////////////////////////////////////////////
3 // Purpose: interface of wxBusyInfo
4 // Author: wxWidgets team
6 // Licence: wxWindows license
7 /////////////////////////////////////////////////////////////////////////////
12 This class makes it easy to tell your user that the program is temporarily busy.
13 Just create a wxBusyInfo object on the stack, and within the current scope,
14 a message window will be shown.
19 wxBusyInfo wait("Please wait, working...");
21 for (int i = 0; i < 100000; i++)
27 It works by creating a window in the constructor, and deleting it
30 You may also want to call wxTheApp-Yield() to refresh the window
31 periodically (in case it had been obscured by other windows, for
35 wxWindowDisabler disableAll;
37 wxBusyInfo wait("Please wait, working...");
39 for (int i = 0; i < 100000; i++)
48 but take care to not cause undesirable reentrancies when doing it (see
49 wxApp::Yield for more details). The simplest way to do it is to use
50 wxWindowDisabler class as illustrated in the above example.
59 Constructs a busy info window as child of @a parent and displays @e msg in it.
61 @note If @a parent is not @NULL you must ensure that it is not
62 closed while the busy info is shown.
64 wxBusyInfo(const wxString
& msg
, wxWindow
* parent
= NULL
);
67 Hides and closes the window containing the information text.
69 virtual ~wxBusyInfo();