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