TableWrapLayout Troubles [message #188242] |
Wed, 21 May 2008 14:59 |
paolo russian Messages: 34 Registered: July 2009 |
Member |
|
|
I've got this code to display a custom property sheet, and it shows and
displays correctly, but the textarea where I want to type in appears only
1 row tall while I want it to be at least 8-10 or even more rows. I tried
to analyze and paste in a lot of code over the net but my textarea remains
always 1 row narrow.
How can I unshrink it?
here's the code (in XXXCodePropertySection.java)
public void createControls(Composite parent, TabbedPropertySheetPage
tabbedPropertySheetPage) {
FormToolkit toolkit = new FormToolkit(parent.getDisplay());
Form form = toolkit.createForm(parent);
form.setText( "Custom code:" );
TableWrapLayout layout = new TableWrapLayout();
layout.numColumns = 2 ;
Composite body = form.getBody();
body.setLayout(layout);
summaryText = toolkit.createText(body, "" ,
SWT.BORDER|SWT.MULTI|SWT.H_SCROLL|SWT.V_SCROLL);
summaryText.setLayoutData( new TableWrapData(TableWrapData.FILL_GRAB));
}
|
|
|
Powered by
FUDForum. Page generated in 0.03886 seconds