File: wx143.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 (106 lines) | stat: -rw-r--r-- 2,933 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
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
<HTML>
<head><title>wxMenuEvent</title></head>

<BODY BGCOLOR=#FFFFFF>
<A NAME="wxmenuevent"></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="wx142.htm#wxmenuitem"><img align=center src="back.gif" BORDER=0 ALT="Previous"></A> <A HREF="wx144.htm#wxmessagedialog"><img align=center src="forward.gif" BORDER=0 ALT="Next"></A> </CENTER><HR>

<H2>wxMenuEvent</H2>
<P>
This class is used for a variety of menu-related events. Note that
these do not include menu command events.<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 a menu event, use these event handler macros to direct input to member
functions that take a wxMenuEvent argument.<P>


<TABLE>


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

<TD VALIGN=TOP>
Process a wxEVT_MENU_CHAR event (a keypress
when a menu is showing). Windows only; not yet implemented.
</TD></TR>


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

<TD VALIGN=TOP>
Process a wxEVT_MENU_INIT event (the menu
is about to pop up). Windows only; not yet implemented.
</TD></TR>


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

<TD VALIGN=TOP>
Process a wxEVT_MENU_HIGHLIGHT event (a menu
item is being highlighted). Windows only; not yet implemented.
</TD></TR>


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

<TD VALIGN=TOP>
Process a wxEVT_POPUP_MENU event (a menu
item is being highlighted). Windows only; not yet implemented.
</TD></TR>


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

<TD VALIGN=TOP>
Process a wxEVT_CONTEXT_MENU event (F1 has
been pressed with a particular menu item highlighted). Windows only; not yet implemented.
</TD></TR>


</TABLE>
<B><FONT COLOR="#FF0000">See also</FONT></B><P>
<A HREF="wx260.htm#wxwindowonmenuhighlight">wxWindow::OnMenuHighlight</A>, <A HREF="wx299.htm#eventhandlingoverview">Event handling overview</A><P>
<B><FONT COLOR="#FF0000">Members</FONT></B><P>
<A HREF="#topic562">wxMenuEvent::wxMenuEvent</A><BR>
<A HREF="#topic563">wxMenuEvent::m_menuId</A><BR>
<A HREF="#wxmenueventgetmenuid">wxMenuEvent::GetMenuId</A><BR>
<P>

<HR>
<A NAME="topic562"></A>
<H3>wxMenuEvent::wxMenuEvent</H3>
<P>
<B></B> <B>wxMenuEvent</B>(<B>WXTYPE </B><I>id = 0</I>, <B>int </B><I>id = 0</I>, <B>wxDC* </B><I>dc = NULL</I>)<P>
Constructor.<P>

<HR>
<A NAME="topic563"></A>
<H3>wxMenuEvent::m_menuId</H3>
<P>
int m_menuId<P>
The relevant menu identifier.<P>

<HR>
<A NAME="wxmenueventgetmenuid"></A>
<H3>wxMenuEvent::GetMenuId</H3>
<P>
<B>int</B> <B>GetMenuId</B>() <B>const</B><P>
Returns the menu identifier associated with the event.<P>

</BODY></HTML>