Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Standard Widget Toolkit (SWT) » Label "cut" in wizard page
Label "cut" in wizard page [message #459036] Fri, 29 July 2005 13:20 Go to next message
Vincent Etter is currently offline Vincent EtterFriend
Messages: 72
Registered: July 2009
Member
Hello !

I have some labels on a wizard page. It worked fine until I decided to
use tabs ("\t") to align words. Now the end of some words is cut :

Screenshot : http://img288.imageshack.us/img288/6923/labelcut4ad.jpg

Does anybody know why this happens ? Thanks

Vincent
Re: Label "cut" in wizard page [message #459037 is a reply to message #459036] Fri, 29 July 2005 13:21 Go to previous messageGo to next message
Vincent Etter is currently offline Vincent EtterFriend
Messages: 72
Registered: July 2009
Member
Vincent Etter wrote:
> Hello !
>
> I have some labels on a wizard page. It worked fine until I decided to
> use tabs ("\t") to align words. Now the end of some words is cut :
>
> Screenshot : http://img288.imageshack.us/img288/6923/labelcut4ad.jpg
>
> Does anybody know why this happens ? Thanks
>
> Vincent

The text must be :

Inclure les fichiers cachés : Non
Inclure les sous-répertoires : Oui
Re: Label "cut" in wizard page [message #459058 is a reply to message #459037] Fri, 29 July 2005 14:48 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: sunil_kamath.nohotspammail.com

"Vincent Etter" <vincent.etter@gmail.com> wrote in message
news:dcdagn$r95$2@news.eclipse.org...
> Vincent Etter wrote:
>> Hello !
>>
>> I have some labels on a wizard page. It worked fine until I decided to
>> use tabs ("\t") to align words. Now the end of some words is cut :
>>
>> Screenshot : http://img288.imageshack.us/img288/6923/labelcut4ad.jpg
>>
>> Does anybody know why this happens ? Thanks
>>
>> Vincent
>
> The text must be :
>
> Inclure les fichiers cach
Re: Label "cut" in wizard page [message #459059 is a reply to message #459058] Fri, 29 July 2005 15:10 Go to previous messageGo to next message
Vincent Etter is currently offline Vincent EtterFriend
Messages: 72
Registered: July 2009
Member
Sunil Kamath wrote:
> "Vincent Etter" <vincent.etter@gmail.com> wrote in message
> news:dcdagn$r95$2@news.eclipse.org...
>
>>Vincent Etter wrote:
>>
>>>Hello !
>>>
>>>I have some labels on a wizard page. It worked fine until I decided to
>>>use tabs ("\t") to align words. Now the end of some words is cut :
>>>
>>>Screenshot : http://img288.imageshack.us/img288/6923/labelcut4ad.jpg
>>>
>>>Does anybody know why this happens ? Thanks
>>>
>>>Vincent
>>
>>The text must be :
>>
>>Inclure les fichiers cachés : Non
>>Inclure les sous-répertoires : Oui
>
>
> Did you try increasing the width of the labels manually?
> Or, if you are using GridLayout, you could set
> GridData.grabExcessHorizontalSpace = true.
> AFAIK, When a component calculates its preferred size, it doesn't
> distinguish between normal characters and special characters.
> It uses an average character width multiplied by the number of characters.
> ---
> Sunil
>
>

I "packed" my labels but didn't try to increase their size manually. I
solved the problem with formlayouts. Thanks for your answer ! It's good
to know that size is "estimanted" and not really calculated...

Vincent
Re: Label "cut" in wizard page [message #459475 is a reply to message #459059] Tue, 09 August 2005 21:10 Go to previous message
Veronika Irvine is currently offline Veronika IrvineFriend
Messages: 1272
Registered: July 2009
Senior Member
>> AFAIK, When a component calculates its preferred size, it doesn't
>> distinguish between normal characters and special characters.
>> It uses an average character width multiplied by the number of
>> characters.

This is not correct. For example, custom widget in SWT use
GC.textExtent(String string, int flags) where the flags specify whether
tabs, mnemonis, or delimiters should be considered when measuring string
lengths. This is also true of native widgets. In cases where this is found
to not be true, you should enter bug reports.


"Vincent Etter" <vincent.etter@gmail.com> wrote in message
news:dcdgtu$4em$1@news.eclipse.org...
> Sunil Kamath wrote:
>> "Vincent Etter" <vincent.etter@gmail.com> wrote in message
>> news:dcdagn$r95$2@news.eclipse.org...
>>
>>>Vincent Etter wrote:
>>>
>>>>Hello !
>>>>
>>>>I have some labels on a wizard page. It worked fine until I decided to
>>>>use tabs ("\t") to align words. Now the end of some words is cut :
>>>>
>>>>Screenshot : http://img288.imageshack.us/img288/6923/labelcut4ad.jpg
>>>>
>>>>Does anybody know why this happens ? Thanks
>>>>
>>>>Vincent
>>>
>>>The text must be :
>>>
>>>Inclure les fichiers cach
Previous Topic:Which platforms do not support controlling native drags?
Next Topic:Why is there not SWT.CAP_* in my eclipse3.1?
Goto Forum:
  


Current Time: Tue May 11 14:28:22 GMT 2021

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

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

Back to the top