catching all control events with one handler?

rory rorywalsh at gmail.com
Mon Feb 11 12:14:02 PST 2008


On Feb 11, 3:35 pm, va... at wxwidgets.org (Vadim Zeitlin) wrote:
> On Mon, 11 Feb 2008 06:57:36 -0800 (PST) rory <rorywa... 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/
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: wx-users-unsubscr... at lists.wxwidgets.org
> For additional commands, e-mail: wx-users-h... at lists.wxwidgets.org

Thanks, I'll try it out.

Rory.






More information about the wx-users mailing list