Re: NSSmallControlSize in programatically creating an NSPopUpButtonCell?
Re: NSSmallControlSize in programatically creating an NSPopUpButtonCell?
- Subject: Re: NSSmallControlSize in programatically creating an NSPopUpButtonCell?
- From: "l.m.orchard" <email@hidden>
- Date: Mon, 26 Nov 2001 14:00:06 -0500
On Monday, November 26, 2001, at 01:23 PM, Kurt Revis wrote:
Well, everything works fine up to one point: I'm trying to set this
button cell's control size to NSSmallControlSize. So, the button
itself is small, but the menu items are large and so is the title in
the button itself.
I don't remember exactly, but you may have to set the font of the
button yourself.
[popUpButtonCell setFont:[NSFont systemFontOfSize:[NSFont
smallSystemFontSize]]];
I don't think you can do anything about the menu itself being normal
size, unfortunately. (I might be wrong about this--but I could never
figure out a way to change it from Cocoa.)
Hmm! Okay, so this worked to make the font small in *both* the button
title and the menu items in the pop-up. Great! Though, one problem I'm
still having is that the font, even small, is cut off in the button.
Thinking I have some sort of problem in sizing my button... or?
Thanks for getting me 1/2 way there, though!
--
Leslie Michael Orchard <email@hidden>
ICQ: 492905 (home) 11082089 (work)
"...see you space cowboy..."