discuss-gnustep
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: NSTextField without border


From: Fred Kiefer
Subject: Re: NSTextField without border
Date: Sat, 29 Jul 2006 13:17:13 +0200
User-agent: Thunderbird 1.5.0.4 (X11/20060527)

Hi Andreas,

if you look carefully you will notice that what you see is not a border
but a bezel :-)

[_nameField setBezeled: NO];

Should do the trick. The interesting question is now, where the
difference to MacOSX comes from. On GNUstep text fields have bezeled
borders by default. Not sure if this is true for MacOSX as well.

Cheers
Fred

Andreas Höschler schrieb:
> Dear steppers,
> 
> I am setting up a textfield as follows:
> 
>          [_nameField setEditable:YES];
>          [_nameField setSelectable:YES];
>          [_nameField setAlignment:NSCenterTextAlignment];
>          [_nameField setDrawsBackground:NO];
>          [_nameField setBordered:NO];
>          [self addSubview:_nameField];
>          [_nameField setDelegate:self];
> 
> On MacOSX I get the expected behaviour. However, on GNUstep the border
> is still drawn. See the following screenshot:
> 
>     http://www.smartsoft.de/Downloads/SOObjectBrowser.png
> 
> How do I get rid of the border? Am I missing anything or is this a bug
> in GNUstep?
> 
> Thanks a lot!
> 
> Regards,
> 
>   Andreas
> 
> 
> 
> 
> _______________________________________________
> Discuss-gnustep mailing list
> Discuss-gnustep@gnu.org
> http://lists.gnu.org/mailman/listinfo/discuss-gnustep
> 
> 





reply via email to

[Prev in Thread] Current Thread [Next in Thread]