1 2 3 4 5 6 7 8 9 10 11 12 13 14 15
|
<HTML>
<head><title>Other events</title></head>
<BODY BGCOLOR=#FFFFFF>
<A NAME="topic1"></A><CENTER>
<A HREF="port.htm"><img align=center src="contents.gif" BORDER=0 ALT="Contents"></A> <A HREF="port3.htm#eventsystem"><img align=center src="up.gif" BORDER=0 ALT="Up"></A> <A HREF="port4.htm#topic0"><img align=center src="back.gif" BORDER=0 ALT="Previous"></A> <A HREF="port6.htm#classhierarchy"><img align=center src="forward.gif" BORDER=0 ALT="Next"></A> </CENTER><HR>
<H2>Other events</H2>
<P>
To intercept other events, you used to override virtual functions, such as OnSize. Now, while you can use
the OnSize name for such event handlers (or any other name of your choice), it has only a single argument
(wxSizeEvent) and must again be 'mapped' using the EVT_SIZE macro. The same goes for all other events,
including OnClose (although in fact you can still use the old, virtual form of OnClose for the time being).<P>
</BODY></HTML>
|