Pop up menu on treectrl

BlitzMax Forums/Brucey's Modules/Pop up menu on treectrl

Pete Rigz(Posted 2008) [#1]
Is there anyway to detect a right click on a treectrl to display a popup menu? Doesn't seem like there is looking at the event list. Cheers!


Brucey(Posted 2008) [#2]
Which module are we talking about? :-)


Pete Rigz(Posted 2008) [#3]
wxTreeCtrl

in the wxListCtrl there is wxEVT_COMMAND_LIST_ITEM_RIGHT_CLICK but there doesn't seem to be any equivalent for the treectrl. Probably just me being stupid though :)


Brucey(Posted 2008) [#4]
Ah yes, the documentation appears to be lacking in wxTreeCtrl.

The one you are after is called wxEVT_COMMAND_TREE_ITEM_RIGHT_CLICK.


Pete Rigz(Posted 2008) [#5]
Excellent, thanks Brucey.