Right Click Menus
Jan Schenkel
janschenkel at yahoo.com
Mon Jan 13 17:27:14 EST 2003
--- Jez <jbradshaw at blueyonder.co.uk> wrote:
> I'm sure it must be possible, but could anyone
> document how to easily
> achieve context-sensitive right click menus in an
> app, much like the ones
> available in the designer.
>
Hi Jez,
It is definitely possible. Have a look at the entry in
the Transcript Dictionary for the 'popup' command.
on mouseDown pWhichButton
if pWhichButton is 3 -- context sensitive click
popup btn "MyPopUpMenu"
else
pass mouseDown
end if
end mouseDown
Hope this helped,
Jan Schenkel.
=====
"As we grow older, we grow both wiser and more foolish at the same time." (La Rochefoucauld)
__________________________________________________
Do you Yahoo!?
Yahoo! Mail Plus - Powerful. Affordable. Sign up now.
http://mailplus.yahoo.com
More information about the use-livecode
mailing list