Hey All,
Just a couple of things to note. I''ve updated the wxGenericDirCtrl.h
file,
to include the ReCreateTree() method, as it was missing, and was very simple
to add. I''ve compiled, and checked to make sure everything looks good,
and
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://rubyforge.org/projects/wxride/
http://rubyforge.org/projects/vwmc/
-------------- next part --------------
An HTML attachment was scrubbed...
URL:
http://rubyforge.org/pipermail/wxruby-development/attachments/20080122/b44764d5/attachment.html