Re: NSMenu menuBarHeight is 0?
Re: NSMenu menuBarHeight is 0?
- Subject: Re: NSMenu menuBarHeight is 0?
- From: Ricky Sharp <email@hidden>
- Date: Mon, 24 Oct 2005 19:28:22 -0500
On Oct 24, 2005, at 7:06 PM, Jonathan del Strother wrote:
My app has a fullscreen mode, where the menubar is hidden. If the
mouse cursor moves to the top of the display, I'd like to show the
menubar - so I need the menubar height to check where the cursor is
in relation to it.
You can achieve this by using the appropriate mode and options with
the SetSystemUIMode API:
OSStatus theStatus = SetSystemUIMode (kUIModeAllHidden,
kUIOptionAutoShowMenuBar);
See <http://developer.apple.com/technotes/tn2002/tn2062.html> for
details.
___________________________________________________________
Ricky A. Sharp mailto:email@hidden
Instant Interactive(tm) http://www.instantinteractive.com
_______________________________________________
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