Mac Menubar Again...

Frank Leahy frank at backtalk.com
Fri Jan 21 11:35:29 EST 2005


Chipp,

To each menubar group I add this function:

on mouseDown
   UpdateMenus
   pass mouseDown
end mouseDown

where UpdateMenus is a handler that updates all the menus in the 
menubar group.

And in each stack I have something similar to this (changing the stack 
name as needed), so that it updates the menus when a command/control 
key is used:

on RawKeyDown
   if the short name of this stack contains "List of Albums" then
     if the commandKey is "down" then
       UpdateMenus
     end if
   end if
   pass RawKeyDown
end RawKeyDown

This seems to work fine on both Mac and Windows (but now that I think 
about it, I wonder if this gets called if you use the keyboard to 
browse a menu on Windows).

-- Frank

Web Photos Pro: Software for Photo Bloggers and Other Photo Power Users
See us on the web at http://www.webphotospro.com/

On Jan 21, 2005, at 4:28 PM, use-revolution-request at lists.runrev.com 
wrote:

> Date: Fri, 21 Jan 2005 17:03:57 +1000
> From: Sarah Reichelt <sarahr at genesearch.com.au>
> Subject: Re: Mac Menubar Again...
> To: How to use Revolution <use-revolution at lists.runrev.com>
> Message-ID: <9EB2CD5C-6B7A-11D9-823A-0003937A97B8 at genesearch.com.au>
> Content-Type: text/plain; charset=US-ASCII; format=flowed
>
> The Mac menus DO respond to the mouseDown, but they don't know which
> menu has been selected.
> If you have a mouseDown handler in the menubar's group, it will be
> triggered, but you will have to set ALL the menus at that point as you
> have no way of knowing which is going to be displayed. (In Mac's once
> the mouse button is clicked down in a menubar, it can be moved from
> side to side and will display any menus under the pointer.)
>
> Cheers,
> Sarah



More information about the Use-livecode mailing list