Hi,
The documentation mentions the evt_tree_item_menu method for TreeCtrl
but it seems that this method is not defined (wxRuby 1.9.4 on
Windows).
As a workaround, I’m currently using evt_tree_item_right_click.
Cheers.
Chauk-Mean.
Hi,
The documentation mentions the evt_tree_item_menu method for TreeCtrl
but it seems that this method is not defined (wxRuby 1.9.4 on
Windows).
As a workaround, I’m currently using evt_tree_item_right_click.
Cheers.
Chauk-Mean.
Hi
Chauk-Mean P wrote:
The documentation mentions the evt_tree_item_menu method for TreeCtrl
but it seems that this method is not defined (wxRuby 1.9.4 on
Windows).
Thanks for spotting that. We’ll fix in SVN, but in the meantime if you
wanted to use the right event handler you could add the following at the
top of your script after require ‘wx’.
Wx::EvtHandler.register_class(Wx::TreeEvent,
Wx::EVT_COMMAND_TREE_ITEM_MENU,
‘evt_tree_item_menu’,
1)
alex
Hi Alex,
2008/2/27, Alex F. [email protected]:
in the meantime if you wanted to use the right event handler
you could add the following at the
top of your script after require ‘wx’.Wx::EvtHandler.register_class(Wx::TreeEvent,
Wx::EVT_COMMAND_TREE_ITEM_MENU,
‘evt_tree_item_menu’, 1)
Thanks. This is much better than my basic workaround.
Now the contextual menu key on my keyboard works also.
Chauk-Mean.
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