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
|
<HTML>
<head><title>wxNotebookEvent</title></head>
<BODY BGCOLOR=#FFFFFF>
<A NAME="wxnotebookevent"></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="wx156.htm#wxnotebook"><img align=center src="back.gif" BORDER=0 ALT="Previous"></A> <A HREF="wx158.htm#wxobject"><img align=center src="forward.gif" BORDER=0 ALT="Next"></A> </CENTER><HR>
<H2>wxNotebookEvent</H2>
<P>
This class represents the events generated by a notebook control.<P>
<B><FONT COLOR="#FF0000">Derived from</FONT></B><P>
<A HREF="wx52.htm#wxcommandevent">wxCommandEvent</A><BR>
<A HREF="wx84.htm#wxevent">wxEvent</A><BR>
<A HREF="wx85.htm#wxevthandler">wxEvtHandler</A><BR>
<A HREF="wx158.htm#wxobject">wxObject</A><P>
<B><FONT COLOR="#FF0000">Include files</FONT></B><P>
<wx/notebook.h><P>
<B><FONT COLOR="#FF0000">Event table macros</FONT></B><P>
To process a notebook event, use these event handler macros to direct input to member
functions that take a wxNotebookEvent argument.<P>
<TABLE>
<TR><TD VALIGN=TOP>
<B>EVT_NOTEBOOK_PAGE_CHANGED(id, func)</B>
</TD>
<TD VALIGN=TOP>
The page selection was changed. Processes a
wxEVT_COMMAND_NOTEBOOK_PAGE_CHANGED event.
</TD></TR>
<TR><TD VALIGN=TOP>
<B>EVT_NOTEBOOK_PAGE_CHANGING(id, func)</B>
</TD>
<TD VALIGN=TOP>
The page selection is about to be changed.
Processes a wxEVT_COMMAND_NOTEBOOK_PAGE_CHANGING event.
</TD></TR>
</TABLE>
<B><FONT COLOR="#FF0000">See also</FONT></B><P>
<A HREF="wx156.htm#wxnotebook">wxNotebook</A>, <A HREF="wx233.htm#wxtabctrl">wxTabCtrl</A>, <A HREF="wx234.htm#wxtabevent">wxTabEvent</A><P>
<B><FONT COLOR="#FF0000">Members</FONT></B><P>
<A HREF="#wxnotebookeventconstr">wxNotebookEvent::wxNotebookEvent</A><BR>
<A HREF="#wxnotebookeventgetoldselection">wxNotebookEvent::GetOldSelection</A><BR>
<A HREF="#wxnotebookeventgetselection">wxNotebookEvent::GetSelection</A><BR>
<A HREF="#wxnotebookeventsetoldselection">wxNotebookEvent::SetOldSelection</A><BR>
<A HREF="#wxnotebookeventsetselection">wxNotebookEvent::SetSelection</A><BR>
<P>
<HR>
<A NAME="wxnotebookeventconstr"></A>
<H3>wxNotebookEvent::wxNotebookEvent</H3>
<P>
<B></B> <B>wxNotebookEvent</B>(<B>wxEventType</B><I> eventType = wxEVT_NULL</I>,
<B>int</B><I> id = 0</I>, <B>int</B><I> sel = -1</I>, <B>int</B><I> oldSel = -1</I>)<P>
Constructor.<P>
<HR>
<A NAME="wxnotebookeventgetoldselection"></A>
<H3>wxNotebookEvent::GetOldSelection</H3>
<P>
<B>int</B> <B>GetOldSelection</B>() <B>const</B><P>
Returns the page that was selected before the change, -1 if none was selected.<P>
<HR>
<A NAME="wxnotebookeventgetselection"></A>
<H3>wxNotebookEvent::GetSelection</H3>
<P>
<B>int</B> <B>GetSelection</B>() <B>const</B><P>
Returns the currently selected page, or -1 if none was selected.<P>
<HR>
<A NAME="wxnotebookeventsetoldselection"></A>
<H3>wxNotebookEvent::SetOldSelection</H3>
<P>
<B>void</B> <B>SetOldSelection</B>(<B>int</B><I> page</I>)<P>
Sets the id of the page selected before the change.<P>
<HR>
<A NAME="wxnotebookeventsetselection"></A>
<H3>wxNotebookEvent::SetSelection</H3>
<P>
<B>void</B> <B>SetSelection</B>(<B>int</B><I> page</I>)<P>
Sets the selection member variable.<P>
<B><FONT COLOR="#FF0000">See also</FONT></B><P>
<A HREF="wx157.htm#wxnotebookeventgetselection">wxNotebookEvent::GetSelection</A><P>
</BODY></HTML>
|