Dynamic menubar menus in OSX
Howard Bornstein
bornstein at designeq.com
Mon Jul 5 17:53:02 EDT 2004
Hmm. This must be something so obvious I'm completely missing it. I'm
trying to create a dynamic menu in the menubar. Something that gets set
when the user clicks the menu. So for a test, I create a stack and use
the Menu Builder to build a standard menu. I add a new menu item called
Ticks. In the script of the button Ticks, I put:
On mousedown
put the ticks into me
end Mousedown
If the editmenus property of the stack is true, the menus show up on
the stack under OSX. If I click the Ticks menu, it puts a new ticks
value as the menu item each time I click it (as expected). However,
when I set the editmenus property to false, so that it shows up in the
regular Mac menubar, the Ticks menu only shows the last value placed
there (when editmenus was true). IOW, once the menu appears in the
regular Mac menubar, it no longer seems to respond to the mousedown
handler. A MenuPick handler in the button works fine, but not a
mousedown or mouseup handler. Why?
Regards,
Howard Bornstein
-----------------------
D E S I G N E Q
www.designeq.com
More information about the use-livecode
mailing list