Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Standard Widget Toolkit (SWT) » Bug in CLabel? Centering not working as expected
Bug in CLabel? Centering not working as expected [message #448110] Mon, 03 January 2005 12:51 Go to next message
Fabian Wolf is currently offline Fabian WolfFriend
Messages: 96
Registered: July 2009
Member
Hi,

I don't know if this is a known one or if it's a feature ;)
It's still there in the 3.1M4 package of eclipse...


Not working (CLabel disappears):
...
CLabel label = new CLabel(composite, SWT.SHADOW_IN | SWT.CENTER);
label.setLayoutData(new GridData(GridData.FILL_HORIZONTAL));
...


Working:
...
CLabel label = new CLabel(composite, SWT.SHADOW_IN);
label.setAlignment(SWT.CENTER);
label.setLayoutData(new GridData(GridData.FILL_HORIZONTAL));
...


Regards,
Fabian
Re: Bug in CLabel? Centering not working as expected [message #448261 is a reply to message #448110] Thu, 06 January 2005 15:24 Go to previous message
Veronika Irvine is currently offline Veronika IrvineFriend
Messages: 1272
Registered: July 2009
Senior Member
Please enter a bug report against Platform SWT.

"Fabian Wolf" <Fabian.Wolf@informatik.uni-ulm.de> wrote in message
news:crb2j0$kmp$1@www.eclipse.org...
> Hi,
>
> I don't know if this is a known one or if it's a feature ;)
> It's still there in the 3.1M4 package of eclipse...
>
>
> Not working (CLabel disappears):
> ...
> CLabel label = new CLabel(composite, SWT.SHADOW_IN | SWT.CENTER);
> label.setLayoutData(new GridData(GridData.FILL_HORIZONTAL));
> ...
>
>
> Working:
> ...
> CLabel label = new CLabel(composite, SWT.SHADOW_IN);
> label.setAlignment(SWT.CENTER);
> label.setLayoutData(new GridData(GridData.FILL_HORIZONTAL));
> ...
>
>
> Regards,
> Fabian
>
>
Previous Topic:Drag & Drop does not work with Exceed 8.0
Next Topic:Toggle button acting like radio buttons
Goto Forum:
  


Current Time: Fri Oct 30 13:41:44 GMT 2020

Powered by FUDForum. Page generated in 0.01671 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top