Re: Custom menu behavior
Re: Custom menu behavior
- Subject: Re: Custom menu behavior
- From: Daniel Jalkut <email@hidden>
- Date: Thu, 03 Nov 2005 10:15:49 -0500
Hi Tristan - I'm pretty sure you'll have to use Carbon to achieve
this. You can create a Carbon menu and display it with
PopUpMenuSelect. Before you do so, you want to install a Carbon event
handler (InstallEventHandler) for the {kEventClassMenu,
kEventMenuTargetItem} event.
Kind of complicated if you're not familiar with Carbon, but it will
get the job done! As far as I know this functionality is still not
available from Cocoa's NSMenu.
Daniel
On Nov 3, 2005, at 4:57 AM, Tristan Leblanc wrote:
Hi,
Is there any way to add custom behaviors to menus.
I would like to use a popup button, but I need to know wich item is
under the mouse while tracking the menu...
Thanks,
Tristan
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Cocoa-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
sweater.com
This email sent to email@hidden
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Cocoa-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden