What property does "set as stack menubar" set?

J. Landman Gay jacque at hyperactivesw.com
Sun Mar 15 22:34:55 EDT 2015


On 3/15/2015 9:19 PM, J. Landman Gay wrote:
>>>> >>set the menuBar of stack otWnNm to the long id of  group
>>>> "stk_menu" of
>>>> >>stack otWnNm
>
> Oh wait. It should be a name, not an ID.

Thinking about this, the ID is likely the problem. The long ID locks the 
menu reference to the original stack, it's unique. You don't want that, 
you want a generic name so that the object hierarchy is searched.

In the original source stack, set the menubar to "stk_menu" without any 
other qualifiers. Its clone should retain that setting, but when the 
engine tries to find the menu group it will find the one in the clone first.

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




More information about the use-livecode mailing list