• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: Window Grow Button
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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


  • Follow-Ups:
    • Re: Window Grow Button
      • From: Seth Willits <email@hidden>
    • Re: Window Grow Button
      • From: Finlay Dobbie <email@hidden>
References: 
 >Window Grow Button (From: Seth Willits <email@hidden>)

  • Prev by Date: Re: self willChangeValueForKey: @"all keys"???
  • Next by Date: GNU arch [was CVS]
  • Previous by thread: Window Grow Button
  • Next by thread: Re: Window Grow Button
  • Index(es):
    • Date
    • Thread