Page 1 of 1
Help with handler
Posted: Wed Apr 09, 2014 3:16 am
by r_houdek
I'm trying to write a handler to process a right mouse click:
- Selects the tree node with a right click
- Opens a popup menu
Thanks for your help!
Ritch
Re: Help with handler
Posted: Thu Apr 10, 2014 9:51 am
by wilstrand
Hi Ritch!
rTree has a built in context menu as default. If you want to use your own, you should first
disable the built in one and then call your own. Try something like this in the rTree group script:
Code: Select all
on mouseUp pButton
set the useContextMenu of me to false
if pButton = 3 then popUp btn "myMenu"
pass "mouseUp"
end mouseUp
Do not forget to pass the "mouseUp".
I hope I understood what you wanted to do!
All the best!
Mats