expand Label width [message #459297] |
Thu, 04 August 2005 23:39  |
Eclipse User |
|
|
|
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.
|
|
|
|
Re: expand Label width [message #459323 is a reply to message #459297] |
Fri, 05 August 2005 10:44  |
Eclipse User |
|
|
|
On Fri, 05 Aug 2005 05:39:44 +0200, Qiang Song <songq@cn.ibm.com> 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.
Add a GridData to your Label with grabExcessHorizontalSpace set to true?
--
Max - rotvel AT bolignet-aarhus DOT dk
|
|
|
Powered by
FUDForum. Page generated in 0.03376 seconds