[wxruby-users] No evt_tree_sel_changed with TR_MULTIPLE

Alex Fenton alex at pressure.to
Tue Mar 24 02:59:59 EDT 2009


Hi Christian

Christian Schmidt wrote:
> I have a problem with evt_tree_sel_changed not getting fired when I'm
> selecting a node programatically on a TreeCtrl with the TR_MULTIPLE flag
> set.
>   

I think it's a wxWidgets bug:
http://trac.wxwidgets.org/ticket/9570

> I've got some code depending on the evt-handler.
> Can I work around this? I thought of EvtHandler#add_pending_event but I
> can't figure out the correct commandType parameter to TreeEvent#new.

The event type is an integer constant which uniquely identifies that 
kind of event. In this case, you want Wx::EVT_COMMAND_TREE_SEL_CHANGED.

For reference, you can see the mapping of all event types to event 
classes in lib/wx/classes/evthandler.rb

http://wxruby.rubyforge.org/svn/branches/wxruby_2_0_stable/lib/wx/classes/evthandler.rb

a


More information about the wxruby-users mailing list