Determining which menu button was clicked on Mac

Trevor DeVore lists at mangomultimedia.com
Wed Jan 7 18:53:55 EST 2004


On Jan 7, 2004, at 4:41 PM, Sarah Reichelt wrote:
> On 8 Jan 2004, at 9:22 am, Trevor DeVore wrote:
>
>> I was wondering if there was a way to determine which button was 
>> clicked in a menu on the Mac?  On Windows you can put mouse event 
>> handlers in the button itself but these events are not processed on 
>> Mac.
> Check the docs for the mouseUp message. It has a parameter that tells 
> which button is clicked. On Macs, this is 1 for the left mouse button 
> and 3 for right mouse button or control-click.

Though it probably wasn't clear in my original post I would like the 
actual button "File, Edit, Help, etc." that is being clicked.  I have 
one menu button in particular whose values are determined by calls to 
an external.  I would prefer not to call the external function every 
time the user clicks on the menu as a group, just when they click on 
one menu item in particular.

-- 
Trevor DeVore
Blue Mango Multimedia
trevor at mangomultimedia.com



More information about the use-livecode mailing list