Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Modeling » GMF (Graphical Modeling Framework) » TableWrapLayout Troubles
TableWrapLayout Troubles [message #188242] Wed, 21 May 2008 14:59
paolo russian is currently offline paolo russianFriend
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));
}
Previous Topic:changes in templates between versions of GMF ?
Next Topic:Change Absolute Positions (Can't be so difficult???)
Goto Forum:
  


Current Time: Thu Apr 25 12:11:02 GMT 2024

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

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

Back to the top