Enabling/Disabling MenuItems in LC

Terence Heaford t.heaford at icloud.com
Tue Apr 28 02:42:54 EDT 2015


> On 28 Apr 2015, at 02:26, J. Landman Gay <jacque at hyperactivesw.com> wrote:
> 
> LC menus are just buttons in a group and they follow the normal message hierarchy. So the menuPick in the button will trigger first, and if not handled, is passed to the menu group.

I was trying to use LC’s Menu system in the way Apple deals with things in Cocoa but it does not work like that.

I only needed to change the status of menuItems, enabled/disabled, by using the menuPick routine for each item not by changing the status in the menubar routine. This must have confused the shortcuts somehow.

So, this begs the question. Trying to think of a situation…..

When is there a need to use the menubar script?

on mouseDown tMenu
   if tMenu = 1 then
      — your code
   end if
end mouseDown


All the best and thanks

Terry


More information about the use-livecode mailing list