Table, continu text on next line of row [message #441348] |
Fri, 13 August 2004 08:41 |
Eclipse User |
|
|
|
Originally posted by: peter.clueless.be
Hello there,
Is there an option so the text in a row will continu on the next line?
My TableItem shows:
+--------------------+
| This is a text ... |
+--------------------+
I would like to have:
+--------------------+
| This is a text |
| that doesn't fit |
| on one line. |
+--------------------+
Thanks!
--
Peter
|
|
|
Re: Table, continu text on next line of row [message #441349 is a reply to message #441348] |
Fri, 13 August 2004 08:41 |
Eclipse User |
|
|
|
Originally posted by: peter.clueless.be
Peter Billen wrote:
> Is there an option so the text in a row will continu on the next line?
Oops I forgot to add my code:
Table table = new Table(shell, SWT.BORDER | SWT.FULL_SELECTION); //
SWT.SINGLE,
// SWT.MULTI,
table.setHeaderVisible(true);
table.setLinesVisible(false);
TableColumn tableColumn = null;
tableColumn = new TableColumn(table, SWT.LEFT);
tableColumn.setText("Description");
tableColumn.setWidth(180);
tableColumn.setResizable(false);
tableColumn = new TableColumn(table, SWT.LEFT);
tableColumn.setText("Distance & Time");
tableColumn.setWidth(100);
tableColumn.setResizable(false);
// table.getColumn(0).pack();
// table.getColumn(1).pack();
GridData data = new GridData();
data.horizontalAlignment = GridData.FILL;
data.verticalAlignment = GridData.FILL;
data.grabExcessHorizontalSpace = true;
data.grabExcessVerticalSpace = true;
table.setLayoutData(data);
Regards,
--
Peter
|
|
|
|
Re: Table, continu text on next line of row [message #441433 is a reply to message #441403] |
Mon, 16 August 2004 06:59 |
Eclipse User |
|
|
|
Originally posted by: peter.clueless.be
Steve Northover wrote:
> Sorry, the Windows table only supports one line of text in a cell.
Okay thanks for the answer; too bad :(
Is there some kind of walkarround out? I can create multiple rows to be
able to display all the text, but then I have the borders in between..
thanks a lot,
--
Peter
|
|
|
|
Powered by
FUDForum. Page generated in 0.03320 seconds