search for: evt_tree

Displaying 1 result from an estimated 1 matches for "evt_tree".

Did you mean: adt_tree
2008 Jan 22
0
Wx::GenericDirCtrl fixes
...d it does. Also, a temporary solution, till wxGenericDirCtrl#get_tree_ctrl() is fixed, is that you can sub-class Wx::GenericDirCtrl() into your own class, and intercept messages sent by the TreeCtrl within it. Example: class MyDirCtrl < Wx::GenericDirCtrl def initialize(*args) super evt_tree_item_selected(Wx::ID_ANY) { |evt| do_event(evt) } end end As far as I know, this will work with any of the evt_tree* signals. A bit of a hack, but it should work without any problems. L8ers, -- Mario Steele http://www.trilake.net http://www.ruby-im.net http://rubyforge.org/projects/wxruby/ h...