Re: Window Grow Button
Re: Window Grow Button
- Subject: Re: Window Grow Button
- From: glenn andreas <email@hidden>
- Date: Fri, 25 Mar 2005 19:08:43 -0600
On Mar 25, 2005, at 6:29 PM, Seth Willits wrote:
Apparently we can't remove and add the green grow button from a window
at runtime. I tried using
ChangeWindowAttributes([window windowRef], 0,
kWindowFullZoomAttribute)
ChangeWindowAttributes([window windowRef], kWindowFullZoomAttribute,
0)
Which works in Carbon, but doesn't with a Cocoa window. Is there a way
to do this?
Something like:
[[window standardWindowButton: NSWindowZoomButton] setHidden: YES];
"Mostly" works (it hides the button, but there is a small tracking hole
in the title bar there - it thinks there is still a button there, so
when you click nothing happens - you can't drag the window from there
basically).
Glenn Andreas email@hidden
<http://www.gandreas.com/> oh my!
Mad, Bad, and Dangerous to Know
_______________________________________________
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