WARNING: This server is unstable and will be retired in the next days. If you want to keep this forum available, please request immediately a migration on the Nabble Support forum. Forums that don't receive any migration request will be deleted forever.

 « Return to Thread: [bug #36155] [gui] NSPopupbutton text centered

Re: [bug #36155] [gui] NSPopupbutton text centered

by Gregory Casamento :: Rate this Message:

| View in Thread

Eric,

I agree with the change you've made.

I understand that the default is currently to center the text.  I'm
wondering if it would make sense to left align the text by default
since this would avoid weirdness in existing apps.  I'm hoping Fred
may chime in on this point.

In Gorm I need to add a control to NSPopUpButton's inspector allow
setting the alignment. :)

GC

On Thu, Apr 12, 2012 at 12:20 PM, Eric Wasylishen
<INVALID.NOREPLY@...> wrote:

> Follow-up Comment #1, bug #36155 (project gnustep):
>
> My fix for bug https://savannah.gnu.org/bugs/?35702 caused this...
>
> Before that fix NSPopUpButton was hardcoded to always left-align the labels.
> Now it draws the label in the available space, and since it uses the standard
> -[NSCell _drawText:inFrame:] method, now -[NSCell alignment] should determine
> whether the text is left, center, or right aligned. I think this is correct,
> so check one of the popup buttons showing centered text and see if -alignment
> returns NSCenterTextAlignment.
>
>    _______________________________________________________
>
> Reply to this item at:
>
>  <http://savannah.gnu.org/bugs/?36155>
>
> _______________________________________________
>  Message sent via/by Savannah
>  http://savannah.gnu.org/
>
>
> _______________________________________________
> Bug-gnustep mailing list
> Bug-gnustep@...
> https://lists.gnu.org/mailman/listinfo/bug-gnustep



--
Gregory Casamento
Open Logic Corporation, Principal Consultant
yahoo/skype: greg_casamento, aol: gjcasa
(240)274-9630 (Cell)
http://www.gnustep.org
http://heronsperch.blogspot.com

_______________________________________________
Bug-gnustep mailing list
Bug-gnustep@...
https://lists.gnu.org/mailman/listinfo/bug-gnustep

 « Return to Thread: [bug #36155] [gui] NSPopupbutton text centered