1 \section{\class{wxBusyInfo
}}\label{wxbusyinfo
}
3 This class makes it easy to tell your user that the program is temporarily busy.
4 Just create a wxBusyInfo object on the stack, and within the current scope,
5 a message window will be shown.
10 wxBusyInfo wait("Please wait, working...");
12 for (int i =
0; i <
100000; i++)
18 It works by creating a window in the constructor,
19 and deleting it in the destructor.
21 You may also want to call wxTheApp->Yield() to refresh the window
22 periodically (in case it had been obscured by other windows, for
26 wxWindowDisabler disableAll;
28 wxBusyInfo wait("Please wait, working...");
30 for (int i =
0; i <
100000; i++)
39 but take care to not cause undesirable reentrancies when doing it (see
40 \helpref{wxApp::Yield()
}{wxappyield
} for more details). The simplest way to do
41 it is to use
\helpref{wxWindowDisabler
}{wxwindowdisabler
} class as illustrated
44 \wxheading{Derived from
}
48 \wxheading{Include files
}
54 \helpref{wxCore
}{librarieslist
}
56 \latexignore{\rtfignore{\wxheading{Members
}}}
58 \membersection{wxBusyInfo::wxBusyInfo
}\label{wxbusyinfoctor
}
60 \func{}{wxBusyInfo
}{\param{const wxString\&
}{ msg
},
\param{wxWindow*
}{parent = NULL
}}
62 Constructs a busy info window as child of
{\it parent
} and displays
{\it msg
}
65 {\bf NB:
} If
{\it parent
} is not
{\tt NULL
} you must ensure that it is not
66 closed while the busy info is shown.
68 \membersection{wxBusyInfo::
\destruct{wxBusyInfo
}}\label{wxbusyinfodtor
}
70 \func{}{\destruct{wxBusyInfo
}}{\void}
72 Hides and closes the window containing the information text.