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
Help with handler
Moderators: FourthWorld, heatherlaine, Klaus, kevinmiller, robinmiller
Re: Help with handler
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:
Do not forget to pass the "mouseUp".
I hope I understood what you wanted to do!
All the best!
Mats
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
I hope I understood what you wanted to do!
All the best!
Mats
http:www.tapirsoft.on-rev.com
Open Source LiveCode Plugins - rIDE, rGrid, rTree
LiveCode projects
Open Source LiveCode Plugins - rIDE, rGrid, rTree
LiveCode projects