Re: NSMenu menuBarHeight is 0?
Re: NSMenu menuBarHeight is 0?
- Subject: Re: NSMenu menuBarHeight is 0?
- From: Jonathan del Strother <email@hidden>
- Date: Tue, 25 Oct 2005 01:55:42 +0100
On 25 Oct 2005, at 01:28, Ricky Sharp wrote:
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.
Oooh, nifty - thanks.
One last question : I've seen one fullscreen app (annoyingly I can't
remember which one...) which smoothly slides the menubar down, rather
than just flicking it in and out of view. Is there a nice easy
function call to do that?
Jon
_______________________________________________
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