1999-01-25 13:33:08 -05:00
|
|
|
\section{\class{wxBusyCursor}}\label{wxbusycursor}
|
|
|
|
|
|
|
|
This class makes it easy to tell your user that the program is temporarily busy.
|
|
|
|
Just create a wxBusyCursor object on the stack, and within the current scope,
|
|
|
|
the hourglass will be shown.
|
|
|
|
|
|
|
|
For example:
|
|
|
|
|
|
|
|
\begin{verbatim}
|
|
|
|
wxBusyCursor wait;
|
|
|
|
|
|
|
|
for (int i = 0; i < 100000; i++)
|
|
|
|
DoACalculation();
|
|
|
|
\end{verbatim}
|
|
|
|
|
|
|
|
It works by calling \helpref{wxBeginBusyCursor}{wxbeginbusycursor} in the constructor,
|
|
|
|
and \helpref{wxEndBusyCursor}{wxendbusycursor} in the destructor.
|
|
|
|
|
|
|
|
\wxheading{Derived from}
|
|
|
|
|
|
|
|
None
|
|
|
|
|
1999-02-15 15:41:29 -05:00
|
|
|
\wxheading{Include files}
|
|
|
|
|
|
|
|
<wx/utils.h>
|
|
|
|
|
1999-01-25 13:33:08 -05:00
|
|
|
\wxheading{See also}
|
|
|
|
|
2000-03-02 14:06:13 -05:00
|
|
|
\helpref{wxBeginBusyCursor}{wxbeginbusycursor},\rtfsp
|
|
|
|
\helpref{wxEndBusyCursor}{wxendbusycursor},\rtfsp
|
|
|
|
\helpref{wxWindowDisabler}{wxwindowdisabler}
|
1999-01-25 13:33:08 -05:00
|
|
|
|
|
|
|
\latexignore{\rtfignore{\wxheading{Members}}}
|
|
|
|
|
2004-10-04 11:13:52 -04:00
|
|
|
\membersection{wxBusyCursor::wxBusyCursor}\label{wxbusycursorctor}
|
1999-01-25 13:33:08 -05:00
|
|
|
|
|
|
|
\func{}{wxBusyCursor}{\param{wxCursor*}{ cursor = wxHOURGLASS\_CURSOR}}
|
|
|
|
|
|
|
|
Constructs a busy cursor object, calling \helpref{wxBeginBusyCursor}{wxbeginbusycursor}.
|
|
|
|
|
2004-10-04 11:13:52 -04:00
|
|
|
\membersection{wxBusyCursor::\destruct{wxBusyCursor}}\label{wxbusycursordtor}
|
1999-01-25 13:33:08 -05:00
|
|
|
|
|
|
|
\func{}{\destruct{wxBusyCursor}}{\void}
|
|
|
|
|
|
|
|
Destroys the busy cursor object, calling \helpref{wxEndBusyCursor}{wxendbusycursor}.
|
|
|
|
|