File: wx30.htm

package info (click to toggle)
wxwin2-doc 2.01-1
  • links: PTS
  • area: main
  • in suites: potato
  • size: 6,540 kB
  • ctags: 5,968
  • sloc: cpp: 15,157; makefile: 434; sh: 6
file content (47 lines) | stat: -rw-r--r-- 1,929 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
<HTML>
<head><title>wxBusyCursor</title></head>

<BODY BGCOLOR=#FFFFFF>
<A NAME="wxbusycursor"></A><CENTER>
<A HREF="wx.htm"><img align=center src="contents.gif" BORDER=0 ALT="Contents"></A> <A HREF="wx22.htm#classref"><img align=center src="up.gif" BORDER=0 ALT="Up"></A> <A HREF="wx29.htm#wxautomationobject"><img align=center src="back.gif" BORDER=0 ALT="Previous"></A> <A HREF="wx31.htm#wxbutton"><img align=center src="forward.gif" BORDER=0 ALT="Next"></A> </CENTER><HR>

<H2>wxBusyCursor</H2>
<P>
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.<P>
For example:<P>
<PRE>
  wxBusyCursor wait;

  for (int i = 0; i &lt; 100000; i++)
    DoACalculation();
</PRE>
It works by calling <A HREF="wx271.htm#wxbeginbusycursor">wxBeginBusyCursor</A> in the constructor,
and <A HREF="wx271.htm#wxendbusycursor">wxEndBusyCursor</A> in the destructor.<P>
<B><FONT COLOR="#FF0000">Derived from</FONT></B><P>
None<P>
<B><FONT COLOR="#FF0000">Include files</FONT></B><P>
&lt;wx/utils.h&gt;<P>
<B><FONT COLOR="#FF0000">See also</FONT></B><P>
<A HREF="wx271.htm#wxbeginbusycursor">wxBeginBusyCursor</A>, <A HREF="wx271.htm#wxendbusycursor">wxEndBusyCursor</A><P>
<B><FONT COLOR="#FF0000">Members</FONT></B><P>
<A HREF="#topic46">wxBusyCursor::wxBusyCursor</A><BR>
<A HREF="#topic47">wxBusyCursor::~wxBusyCursor</A><BR>
<P>

<HR>
<A NAME="topic46"></A>
<H3>wxBusyCursor::wxBusyCursor</H3>
<P>
<B></B> <B>wxBusyCursor</B>(<B>wxCursor*</B><I> cursor = wxHOURGLASS_CURSOR</I>)<P>
Constructs a busy cursor object, calling <A HREF="wx271.htm#wxbeginbusycursor">wxBeginBusyCursor</A>.<P>

<HR>
<A NAME="topic47"></A>
<H3>wxBusyCursor::~wxBusyCursor</H3>
<P>
<B></B> <B>~wxBusyCursor</B>()<P>
Destroys the busy cursor object, calling <A HREF="wx271.htm#wxendbusycursor">wxEndBusyCursor</A>.<P>

</BODY></HTML>