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.
Alex Fenton
2008-Feb-27 14:41 UTC
[wxruby-users] Missing evt_tree_item_menu method for TreeCtrl ?
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
Chauk-Mean P
2008-Feb-27 16:03 UTC
[wxruby-users] Missing evt_tree_item_menu method for TreeCtrl ?
Hi Alex, 2008/2/27, Alex Fenton <alex at pressure.to>:> 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.