Re: removing minimize and zoom widgets from tool palette title bar
Re: removing minimize and zoom widgets from tool palette title bar
- Subject: Re: removing minimize and zoom widgets from tool palette title bar
- From: Fritz Anderson <email@hidden>
- Date: Fri, 19 Oct 2007 20:05:10 -0500
On 19 Oct 2007, at 7:48 PM, John Richetta wrote:
"If buttons are not active, they should at least all be present in
an inactive state. The exception is utility windows, where it is
acceptable to display only one button, the close button."
Has anyone gotten this latter option to work? ... I'd like to
remove - not just disable - the minimize and zoom widgets.
I've tried programmatically creating a window with only a title bar
and close box, and that still creates all three standard widgets
(close, minimize, and zoom). Does anyone know how to remove all but
the close box?
Googling "standardWindowButton hide", I get <http://lists.apple.com/archives/Cocoa-dev/2006/Mar/msg01873.html
>:
It's pretty simple. Once you have the window button in question, you
should be able to just send it a -removeFromSuperview: message. You
may also need to update the window's style mask for the layout to be
done correctly.
I haven't tested this, but the poster, John C. Randolph, is extremely
reliable.
— F
_______________________________________________
Cocoa-dev mailing list (email@hidden)
Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden