File: wx113.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 (74 lines) | stat: -rw-r--r-- 2,946 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
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
<HTML>
<head><title>wxIdleEvent</title></head>

<BODY BGCOLOR=#FFFFFF>
<A NAME="wxidleevent"></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="wx112.htm#wxhttp"><img align=center src="back.gif" BORDER=0 ALT="Previous"></A> <A HREF="wx114.htm#wxicon"><img align=center src="forward.gif" BORDER=0 ALT="Next"></A> </CENTER><HR>

<H2>wxIdleEvent</H2>
<P>
This class is used for idle events, which are generated when the system is idle.<P>
<B><FONT COLOR="#FF0000">Derived from</FONT></B><P>
<A HREF="wx84.htm#wxevent">wxEvent</A><BR>

<A HREF="wx158.htm#wxobject">wxObject</A><P>
<B><FONT COLOR="#FF0000">Include files</FONT></B><P>
&lt;wx/event.h&gt;<P>
<B><FONT COLOR="#FF0000">Event table macros</FONT></B><P>
To process an idle event, use this event handler macro to direct input to a member
function that takes a wxIdleEvent argument.<P>


<TABLE>


<TR><TD VALIGN=TOP>
<B>EVT_IDLE(func)</B>
</TD>

<TD VALIGN=TOP>
Process a wxEVT_IDLE event.
</TD></TR>


</TABLE>
<B><FONT COLOR="#FF0000">Remarks</FONT></B><P>
Idle events can be caught by the wxApp class, or by top-level window classes.<P>
<B><FONT COLOR="#FF0000">See also</FONT></B><P>
<A HREF="wx26.htm#wxapponidle">wxApp::OnIdle</A>, <A HREF="wx299.htm#eventhandlingoverview">Event handling overview</A><P>
<B><FONT COLOR="#FF0000">Members</FONT></B><P>
<A HREF="#topic440">wxIdleEvent::wxIdleEvent</A><BR>
<A HREF="#wxidleeventrequestmore">wxIdleEvent::RequestMore</A><BR>
<A HREF="#wxidleeventmorerequested">wxIdleEvent::MoreRequested</A><BR>
<P>

<HR>
<A NAME="topic440"></A>
<H3>wxIdleEvent::wxIdleEvent</H3>
<P>
<B></B> <B>wxIdleEvent</B>()<P>
Constructor.<P>

<HR>
<A NAME="wxidleeventrequestmore"></A>
<H3>wxIdleEvent::RequestMore</H3>
<P>
<B>void</B> <B>RequestMore</B>(<B>bool</B><I> needMore = TRUE</I>)<P>
Tells wxWindows that more processing is required. This function can be called by an OnIdle
handler for a window or window event handler to indicate that wxApp::OnIdle should
forward the OnIdle event once more to the application windows. If no window calls this function
during OnIdle, then the application will remain in a passive event loop (not calling OnIdle) until a
new event is posted to the application by the windowing system.<P>
<B><FONT COLOR="#FF0000">See also</FONT></B><P>
<A HREF="wx113.htm#wxidleeventmorerequested">wxIdleEvent::MoreRequested</A>, <A HREF="wx26.htm#wxapponidle">wxApp::OnIdle</A><P>

<HR>
<A NAME="wxidleeventmorerequested"></A>
<H3>wxIdleEvent::MoreRequested</H3>
<P>
<B>bool</B> <B>MoreRequested</B>() <B>const</B><P>
Returns TRUE if the OnIdle function processing this event requested more processing time.<P>
<B><FONT COLOR="#FF0000">See also</FONT></B><P>
<A HREF="wx113.htm#wxidleeventrequestmore">wxIdleEvent::RequestMore</A>, <A HREF="wx26.htm#wxapponidle">wxApp::OnIdle</A><P>

</BODY></HTML>