the menuBar and the EditMenus

J. Landman Gay jacque at hyperactivesw.com
Sat Apr 12 14:42:23 EDT 2014


On 4/12/14, 7:49 AM, Graham Samuel wrote:
> BTW the form of these statements that set the menuBar and the
> defaultMenuBar seem to be strange, don't they. I mean, one writes
>
> set the menuBar to "myGroup"
>
> there is no scoping here - what if there are lots of groups called
> "myGroup" in different parts of the stack and substack structure? It
> appears illegal to specify where the group is, I mean AFAIK you can't
> write
>
> set the menuBar to grp "myGroup" of card 1 of stack "myLibraryOfGroups"
>
> it isn't really like the rest of the LC language, is it?

It works here. I routinely do this:

  set the menubar of this stack to the long id of grp "myMenu"

and when I test in the message box:

  put the menubar of this stack

I get:

group id 5132 of card id 2876 of stack "/Users/me/folder/stack.livecode"

-- 
Jacqueline Landman Gay         |     jacque at hyperactivesw.com
HyperActive Software           |     http://www.hyperactivesw.com




More information about the use-livecode mailing list