Re: Putting window titlebar under menu
Re: Putting window titlebar under menu
- Subject: Re: Putting window titlebar under menu
- From: Kim Foo-Jones <email@hidden>
- Date: Fri, 25 Jan 2002 16:00:55 +0000
On Friday, January 25, 2002, at 10:56 AM,
email@hidden wrote:
Is there any way to force a window (a floating panel) to have its
titlebar under the menubar? I've tried using
setFrameTopLeftPoint: but if I specify a position under the
menubar, it moves the window to the right instead...
i thing your NSBorderlessWindowMask is the right solution in this
case. just you may need to call a mouseDown event so that you can
move your window for a right placement [think of clock in OS X ]:
The drawback with that is that it won't let me add an NSToolbar
to the window, which means I'd have to roll my own toolbar code.
(I want to make a user-configurable toolbar, so NSToolbar would
be really useful.)
So, I see two options:
1. Is there any way to get a window with a titlebar partially
under the menu, or
2. Is there any way to get an NSToolbar in a borderless window?
Are either of those possible, or is there another way, or do I
have to start writing my own toolbar code..?
Thanks,
-Kim