Programmatically Generating Events

crjjrc crjjrc at gmail.com
Fri Mar 7 13:49:33 PST 2008


On Mar 7, 3:22 pm, va... at wxwidgets.org (Vadim Zeitlin) wrote:

> c> > c> First, there's wxControl::Command(event).
> c> >
> c> >  This one doesn't only generate the event but also changes the controls
> c> > state to conform to the information in the provided event object. I find it
> c> > rather suspicious and never really understood what was it for.

[...]

>  It's true that we should either totally deprecate Command() or implement
> it. OTOH this would still only take care of wxEvent => wxControl data
> transfer and if we implement this then we'd really need, for symmetry, if
> nothing else, something like wxWindow::MakeEvent() (taking event type as
> parameter?) for wxControl => wxEvent sense. And this starts getting
> complicated...

Complicated enough to not worry about.  widget->ProcessEvent(evt)
works great and can be applied in all cases.  Thanks for helping me
understand how wxWidgets works a bit better.

- Chris






More information about the wx-users mailing list