Layout of Text [message #688071] |
Thu, 23 June 2011 20:46 |
Christian Eugster Messages: 213 Registered: July 2009 Location: St. Gallen Switzerland |
Senior Member |
|
|
Hi,,
in a composite I use a FormToolkit to add widgets to a composite. A Text widget I add using:
GridData gridData = new GridData(GridData.FILL_HORIZONTAL);
gridData.heightHint = 64;
Text text = toolkit.createText(parent, "", SWT.MULTI | SWT.WRAP | SWT.V_SCROLL);
text.setLayoutData(gridData);
When I fill content to that field, everything is ok, that means, it fills the width of the page and it's height is as expected.
But when I change the window size, the layout does not adjust the width of the widget according to the page width, but according to the text in the widget. If the text is extremly long, the widget grows and a horizontal scrollbar on the composite shows up.
Has anybody a hint how I can change this?
Thank you!
|
|
|
|
Powered by
FUDForum. Page generated in 0.03113 seconds