• 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
Programmatically creating NSButton
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Programmatically creating NSButton


  • Subject: Programmatically creating NSButton
  • From: Greg Hulands <email@hidden>
  • Date: Sat, 24 Apr 2004 13:43:09 +1000

Hi,
I am trying to create a rounded aqua button, but the text in the button
seems to be positioned at the bottom of the button, not in the center.

[aqua setButtonType:NSMomentaryPushButton];
[aqua setBordered:YES];
[aqua setBezelStyle:NSRoundedBezelStyle];
[aqua setImagePosition:NSNoImage];
[aqua setAlignment:NSCenterTextAlignment];

What am I doing wrong?

Regards,
Greg
_______________________________________________
cocoa-dev mailing list | email@hidden
Help/Unsubscribe/Archives: http://www.lists.apple.com/mailman/listinfo/cocoa-dev
Do not post admin requests to the list. They will be ignored.


  • Prev by Date: Re: Hardware Assets
  • Next by Date: Accepting a proxy-icon drop
  • Previous by thread: Re: Cross-compile on Linux (x86) machine?
  • Next by thread: Re: Programmatically creating NSButton
  • Index(es):
    • Date
    • Thread