DoMenu

Sarah Reichelt sarah.reichelt at gmail.com
Sun Oct 23 18:36:02 EDT 2005


> Is there a way for the handler of a menuItem to activate the handler of a
> menuItem in a different menu? DoMenu doesn't seem to work. I'm using Mac OSX.
>

Hi Joe,

You can send a "menuPick" to any menu. Here is an example that opens
the Stack Inspector:

send "menuPick " & quote & "Stack Inspector" & quote to btn "Object"
of stack "revMenuBar"

As you can see, you need to give the name of the menuitem, the name of
the menu (or button) and the stack that contains the menu.

HTH,
Sarah



More information about the use-livecode mailing list