List of wxEventTypes on wxWiki

Do you like to promote your wxWidgets based application or component!? Post it here and let's see what the critics have to say. Also, if you found that ONE wx component the world needs to know about, put it here for future reference.
Post Reply
DavidHart
Site Admin
Site Admin
Posts: 4252
Joined: Thu Jan 12, 2006 6:23 pm
Location: IoW, UK

List of wxEventTypes on wxWiki

Post by DavidHart »

With dynamic event handling becoming more common (and, with Bind() in wx2.9, safer) it's increasingly common to need to know the wxEventType that corresponds to an event table macro e.g. wxEVT_COMMAND_TREE_BEGIN_DRAG to EVT_TREE_BEGIN_DRAG. The wx docs seldom mention the event-type, though.

There is now a page on wxWiki that tabulates all known wxEventTypes, and any corresponding event table macro and handler cast, for both wx2.8 and 2.9. Also available is the script that extracted the data from the wx headers.

Enjoy!

David
Auria
Site Admin
Site Admin
Posts: 6695
Joined: Thu Sep 28, 2006 12:23 am
Contact:

Post by Auria »

Awesome, will be very useful :D

Thanks

(Should be part of official manual, maybe we can submit a patch to the docs?)

PS: It would be handy to also have the event type (wxCommandEvent, wxScrollEvent, wxNotifyEvent, ...)
"Keyboard not detected. Press F1 to continue"
-- Windows
DavidHart
Site Admin
Site Admin
Posts: 4252
Joined: Thu Jan 12, 2006 6:23 pm
Location: IoW, UK

Post by DavidHart »

(Should be part of official manual, maybe we can submit a patch to the docs?)
I don't know; better would be for the individual wxEventTypes to be documented in the event class.

But maybe the docs could mention that wxWiki page...
PS: It would be handy to also have the event type (wxCommandEvent, wxScrollEvent, wxNotifyEvent, ...)
That would be do-able, but I don't know how useful it would be. Generally people have just come from the doc page for that control, which should have mentioned the event class; and it's also often guessable from e.g. wxNotifyEventHandler.
Post Reply