Creating custom events - Event Handling Overview vs.
wxFormBuilder
Vadim Zeitlin
vadim at wxwidgets.org
Wed Feb 20 05:26:46 PST 2008
On Wed, 20 Feb 2008 14:15:21 +0100 Lars Uffmann <aral at nurfuerspam.de> wrote:
LU> I started speaking about Connect() because I
LU> thought that it connects an event handler not only to a control, but
LU> also to a specific event - just like the event table.
Again, Connect() does the same thing as an event table entry, i.e. an
EVT_XXX(MyClass::OnEvent) line. Nothing more, nothing less.
LU> Which is probably just because I'm not grasping the concept of events
LU> yet. Namely the difference between event types and event IDs, and how
LU> that affects handling them.
The event type is the C++ type of the associated event object. An ID is
simply one of several pieces of information carried by all events (as they
all derive from wxEvent which has GetId()).
LU> Sorry - but this is the only place where I seem to be able to go to make
LU> some progress on some of my problems - while I'm solving the bigger
LU> amount with debugging and trial-and-error. It's just not easy to get
LU> started with wxWidgets.
I think studying the samples (in this case, the "event" one) is the best
way to clear up the confusion.
Regards,
VZ
--
TT-Solutions: wxWidgets consultancy and technical support
http://www.tt-solutions.com/
More information about the wx-users
mailing list