Building a Windows Menu
Stewart Lynch
slynch at richmond.sd38.bc.ca
Mon Feb 9 17:37:44 EST 2004
I have followed the instructions in the Rev Cookbook for creating a Window
menu (Recipe for automatically updating a Window Menu.
It works just fine on Windows, but not under Mac OS X
I note the following in the Recipe.
Cross-platform note: When a menu button is being displayed in the Mac OS
menu bar, it does not receive mouseDown messages, but its group does. For
this reason, this example handler should be placed in the script of the
menu bar group, rather than in the menu button. (The first line of the
handler makes sure its only executed if the user clicked the Window
menu.) This ensures that the example will work on all platforms.
The problem appears to be the line
if the short name of the target is "Window" then
When you click on the menubar under OS X, the target is the menubar and
not the menu so the conditional never gets executed since the name of the
target is not "Window" but the name of the menubar itself.
Thus, the Cross-Platform note above is true, but placing the script in the
menu bar group does not work.
Any suggestions?
*******************************************
........
: o/ : Stewart Lynch
: <| : Director of Instruction, Technology and Information Services
: / > : Richmond School District
:......: Richmond, BC Canada
Internet: slynch at richmond.sd38.bc.ca
https://public.sd38.bc.ca/~slynch
tel. (604) 668-6128 fax: (604) 668-6006
*******************************************
More information about the use-livecode
mailing list