Unsupported Feature: iconMenu
Ken Ray
kray at sonsothunder.com
Sun Jun 4 23:20:13 EDT 2006
On 6/4/06 1:01 PM, "dreamscapesoftware.com - List"
<list at dreamscapesoftware.com> wrote:
>
> Anyone have any idea on how to get a multi-item menu that sends a message back
> for each item? Thanks
Yes. Here's an example:
-- Set up the menu
on mouseUp
set the icon to 200937 -- just pick an img to use
set the iconMenu to "New|DoNew"&cr&"Open|DoOpen"&cr&"Close|DoClose"
end mouseUp
-- Trap the menuItem choices (card/stack script)
on iconMenuPick pChoice
switch pChoice
case "DoNew"
-- handle "New" choice
break
case "DoOpen"
-- handle "Open" choice
break
case "DoClose"
-- handle "Close" choice
break
end switch
end iconMenuPick
Note BTW that I haven't gotten this to work reliably in the Rev IDE, but
YMMV.
HTH,
Ken Ray
Sons of Thunder Software
Web site: http://www.sonsothunder.com/
Email: kray at sonsothunder.com
More information about the use-livecode
mailing list