|
Re: expand Label width [message #459307 is a reply to message #459297] |
Fri, 05 August 2005 09:30 |
Eclipse User |
|
|
|
Originally posted by: sarek.nurfuerspam.de
Hi,
Qiang Song wrote:
> I put a label into a composite, and the composite uses GridLayout. The
> text of the label contains 5 characters, later I set the label text to
> another string containing 20 characters, then the label can't be fully
> displayed, only the first 5 characters are shown. I want the label to
> expand its width to fit displaying when becoming longer. Any suggestion
> for that? Thanks.
I'd say a:
comopisteWithLabelInit.layout()
should do it.
Or you could assign a GridData object to the label and have it use the
whole space available for example - so the label would always be of the
same size and only display text of different length.
HTH
Christian
--
To reply to this posting directly use the following address and
remove the 'NO-SPAM' part: Riedel.Christian.NO-SPAM@gmx.net
|
|
|
|
Powered by
FUDForum. Page generated in 0.05019 seconds