Displaying 1 result from an estimated 1 matches for "mydirctrl".
2008 Jan 22
0
Wx::GenericDirCtrl fixes
...#39;'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.tri...