data grid - contextual menu
Shao Sean
shaosean at wehostmacs.com
Sat May 2 19:34:26 EDT 2009
[apologize in advanced if this is a double post]
This seems to work and unless Trevor chimes in and says not to do it
this way, it seems to work just fine
on mouseDown pButton
if (pButton = 3) then -- right click
dgMouseDown pButton
# do context menu stuff
else
pass mouseDown
end if
end mouseDown
Also if you want to check if the user has clicked in the header of
the table:
if (the short name of the owner of the owner of the target =
"dgHeader") then
More information about the use-livecode
mailing list