Re: Programatically create SMALL NSCircularBezelStyle NSButtonCell
Re: Programatically create SMALL NSCircularBezelStyle NSButtonCell
- Subject: Re: Programatically create SMALL NSCircularBezelStyle NSButtonCell
- From: Alastair Houghton <email@hidden>
- Date: Fri, 30 Jan 2004 15:50:08 +0000
On 30 Jan 2004, at 14:35, Guy Umbright wrote:
>
I am trying to do a multicell NSControl subclass. One of the
>
cells is supposed to be the small (20px) version of a round button,
>
but I can only get it to draw the large (25px) version.
>
>
What am I missing? Is there some other attribute I need to set?
>
Any ideas appreciated. Here is some code:
>
>
>
In the constructor:
>
(I am working from memory here so please forgive me any
>
small errors)
>
>
m_buttonCell = [[NSButtonCell alloc] initImageCell:nil];
>
[m_buttonCell setBezelType NSCircularBezelStyle];
>
>
m_buttonFrame.size.width = m_buttonFrame.size.height = 20;
How about
[m_buttonCell setControlSize:NSSmallControlSize]
Kind regards,
Alastair.
[demime 0.98b removed an attachment of type application/pkcs7-signature which had a name of smime.p7s]
_______________________________________________
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.