Determining which menu button was clicked on Mac
Trevor DeVore
lists at mangomultimedia.com
Wed Jan 7 19:22:11 EST 2004
On Jan 7, 2004, at 5:04 PM, Doug Lerner wrote:
> On 1/8/04 8:50 AM, "Trevor DeVore" <lists at mangomultimedia.com> wrote:
>
>> On Jan 7, 2004, at 4:34 PM, Doug Lerner wrote:
>>>
>>> On 1/8/04 8:21 AM, "Trevor DeVore" <lists at mangomultimedia.com> 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.
>>>>
>>> I put mouseUp handlers in all my buttons on the Mac and it works
>>> fine...
>>
>> It works fine for buttons but not for buttons that are set as the menu
>> for the application. Only the menu group receives the message in this
>> case.
>>
>
> Is this like the problem I am having where I can select a menu item for
> COPY, but I can't get the CMD+C recognized for that item?
>
> I seem to be able to select individual items though, inside the menu.
I'm not sure. I have experienced this problem in the Rev development
environment (I type CMD+C to copy something but it isn't copied, I type
CMD+S to save but the stack is not saved) but I don't remember it
happening with my own menus.
--
Trevor DeVore
Blue Mango Multimedia
trevor at mangomultimedia.com
More information about the use-livecode
mailing list