Building a Windows Menu

Sarah Reichelt sarahr at genesearch.com.au
Mon Feb 9 18:11:48 EST 2004


On 10 Feb 2004, at 9:02 am, Stewart Lynch wrote:

> 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 it’s 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
>
You are correct - this is the problem, so just remove this line (& it's 
matching end if) and build the Windows menu any time the mouse goes 
down in the menu bar. It is so quick the extra overhead doesn't matter,

Jeanne: this is a cookbook problem.

Cheers,
Sarah



More information about the use-livecode mailing list