Re: Hiding zoom & minimize buttons
Re: Hiding zoom & minimize buttons
- Subject: Re: Hiding zoom & minimize buttons
- From: "John C. Randolph" <email@hidden>
- Date: Tue, 28 Mar 2006 22:30:26 -0800
On Mar 28, 2006, at 4:27 PM, David Catmull wrote:
I want to hide the zoom and minimize buttons in a utility window
because I don't use them and they're taking up too much space (the
HIG says I can just have a close button). Turning them off in
Interface Builder just disables them; doing this on a Carbon nib
actually removes them. If I access them with standardWindowButton:
and hide them manually with setHidden:, then that part of the title
bar doesn't respond to clicks and the window title is still offset
to the right.
Can this be done in Cocoa with a reasonable amount of work (ie
without recreating the title bar myself)? I see Pages' inspector
window doesn't bother hiding them.
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.
-jcr
John C. Randolph <email@hidden> (408) 914-0013
Roaming Cocoa Engineer,
Available for your projects at great Expense and Inconvenience.
_______________________________________________
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