search for: evt_tree_item_selected

Displaying 2 results from an estimated 2 matches for "evt_tree_item_selected".

2008 Jun 06
3
GenericDirCtrl problem
I am having a problem getting any event to happen when I activate a selection on GenericDirCtrl i.e. double click on it. Could anyone help me out. thanks in advance. Joe Attachments: http://www.ruby-forum.com/attachment/2123/Random.rb -- Posted via http://www.ruby-forum.com/.
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/ http://rubyforg...