• 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: can't make an NSButton small enough
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: can't make an NSButton small enough


  • Subject: Re: can't make an NSButton small enough
  • From: Ben Dougall <email@hidden>
  • Date: Fri, 8 Jul 2005 17:28:02 +0100


On Friday, July 8, 2005, at 05:10 pm, Ben Dougall wrote:


On Friday, July 8, 2005, at 04:57 pm, SA Dev wrote:

Ben:

Try creating a brand new button, then setting it to small square button. That is all that is needed to allow the height to be set as well. This has always worked for me and worked when I just tried it. I even put in a small test graphic and it worked wonderfully (it clipped because it was actually 16x16, but the button size remained 13x13).

maybe it's because i'm using an old verion of IB -- i'm on os x 10.2.8. this is the closest/best i can do: drag a round button onto the window. tick 'small' checkbox. set button type to square button. at this point the small checkbox becomes greyed out but stays checked. in the size panel i then set the frame's width and height to 13 but only the width accepts this value. the height goes to 23. and attempting to drag it smaller makes no difference. :/

i got it with this:

[theButton setBounds:NSMakeRect(0,0,13,13)];

thanks, ben

_______________________________________________
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: can't make an NSButton small enough
      • From: Ben Dougall <email@hidden>
References: 
 >Re: can't make an NSButton small enough (From: Ben Dougall <email@hidden>)

  • Prev by Date: Re: Sample Cocoa code to show how to launch a doc by sliding its icon into appl icon
  • Next by Date: Re: can't make an NSButton small enough
  • Previous by thread: Re: can't make an NSButton small enough
  • Next by thread: Re: can't make an NSButton small enough
  • Index(es):
    • Date
    • Thread