catching all control events with one handler?
Vadim Zeitlin
vadim at wxwidgets.org
Mon Feb 11 07:35:47 PST 2008
On Mon, 11 Feb 2008 06:57:36 -0800 (PST) rory <rorywalsh at gmail.com> wrote:
r> Great but what event table macro can I use?
EVT_COMMAND and EVT_SCROLL in your case.
r> And what event class should I be passing to my handler?
You need to define 2 different handlers, one taking wxCommandEvent and the
other wxScrollEvent, but you can forward both of them to the same private
function taking wxEvent.
Regards,
VZ
--
TT-Solutions: wxWidgets consultancy and technical support
http://www.tt-solutions.com/
More information about the wx-users
mailing list