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
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
Joseph E. wrote:
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
Joseph E. wrote:
Joseph E. wrote:
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
Hey Joseph,
The problem, is that GenericDirCtrl doesn’t forward events that are used
in
the TreeCtrl (Which is what GenericDirCtrl is), what you need to do, is
create an intermediate go between class, in order to get it, or do an
Instance Evaluation on the object. Since your using XRC, my suggestion
would be the latter. What you would do, is:
@dirtree.instance_eval do
evt_tree_item_selected(self) do |evt|
puts “Item has been selected, Item Text:
#{self.get_item_text(evt.get_item)}”
end
end
I’ve used this method, only using Inheriting from a GenericDirCtrl in my
own
custom class, for wxRIDE, to handle File System stuff.
Hope this helps.
On Fri, Jun 6, 2008 at 4:07 PM, Joseph E. [email protected]
This forum is not affiliated to the Ruby language, Ruby on Rails framework, nor any Ruby applications discussed here.
Sponsor our Newsletter | Privacy Policy | Terms of Service | Remote Ruby Jobs