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, [EMAIL PROTECTED] wrote:

Date: Fri, 21 Jan 2005 17:03:57 +1000
From: Sarah Reichelt <[EMAIL PROTECTED]>
Subject: Re: Mac Menubar Again...
To: How to use Revolution <use-revolution@lists.runrev.com>
Message-ID: <[EMAIL PROTECTED]>
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

_______________________________________________ use-revolution mailing list use-revolution@lists.runrev.com http://lists.runrev.com/mailman/listinfo/use-revolution

Reply via email to