Connect() vs event tables (was: new wxWidgets artical on IBM's
developerWorks)
Vadim Zeitlin
vadim at wxwindows.org
Sat Sep 23 12:40:54 PDT 2006
On Sat, 23 Sep 2006 15:09:22 -0400 Spencer Salazar <spencer.salazar at gmail.com> wrote:
SS> Personally, I prefer to use Connect() as opposed to creating event
SS> tables. But one thing that Ive found a little troublesome is that
SS> every time I need to use Connect() with a new event type, I have to
SS> look into wx/event.h to find out the corresponding event type (e.g.
SS> wxEVT_CLOSE_WINDOW) and the event handler macro (eg
SS> wxCloseEventHandler).
Event handler macros are easy: they're always of the form "event class" +
"Handler". But I admit that I often have to lookup the event types as well.
It's really unfortunate they don't [always] have the same names as event
tables macros.
SS> So far as I can tell, only the event table macros, but not the event
SS> types/handler macros, are documented in the manual.
SS>
SS> This is a minor quibble, really, but it would be nice to see this
SS> information in the manual.
Yes, this definitely should be done. As usual, any contributions would be
welcome.
Regards,
VZ
--
TT-Solutions: wxWidgets consultancy and technical support
http://www.tt-solutions.com/
More information about the wx-users
mailing list