Table size in Form [message #458169] |
Mon, 11 July 2005 14:50 |
Eclipse User |
|
|
|
Originally posted by: kongofrabongo.epost.no
I've created a table in a FormPage with:
ScrolledForm form = managedForm.getForm();
FormToolkit toolkit = managedForm.getToolkit();
Table tr = toolkit.createTable(form.getBody(), SWT.FULL_SELECTION |
SWT.BORDER);
But the table does not show up unless i set:
tr.setSize(x,y);
which obviously is not a good solution.
I need the table to fill the whole form (size should be relative to form
size, so if the form resizes the table should resize also). I thought
this was done with SWT.FULL_SELECTION at the creation-time of the table,
but that doesn't work.
Any good ideas ?
|
|
|
Re: Table size in Form [message #458173 is a reply to message #458169] |
Mon, 11 July 2005 15:10 |
Eclipse User |
|
|
|
Originally posted by: sunil_kamath.nohotspammail.com
"Ola" <kongofrabongo@epost.no> wrote in message
news:dau10k$7ob$1@news.eclipse.org...
> I've created a table in a FormPage with:
>
> ScrolledForm form = managedForm.getForm();
> FormToolkit toolkit = managedForm.getToolkit();
> Table tr = toolkit.createTable(form.getBody(), SWT.FULL_SELECTION |
> SWT.BORDER);
>
> But the table does not show up unless i set:
>
> tr.setSize(x,y);
>
> which obviously is not a good solution.
>
> I need the table to fill the whole form (size should be relative to form
> size, so if the form resizes the table should resize also). I thought this
> was done with SWT.FULL_SELECTION at the creation-time of the table, but
> that doesn't work.
>
> Any good ideas ?
What kind of layout are you using?
---
Sunil
|
|
|
Re: Table size in Form [message #458238 is a reply to message #458173] |
Mon, 11 July 2005 18:18 |
Eclipse User |
|
|
|
Originally posted by:
>>I've created a table in a FormPage with:
>>
>>ScrolledForm form = managedForm.getForm();
>>FormToolkit toolkit = managedForm.getToolkit();
>>Table tr = toolkit.createTable(form.getBody(), SWT.FULL_SELECTION |
>>SWT.BORDER);
>>
>>But the table does not show up unless i set:
>>
>>tr.setSize(x,y);
>>
>>which obviously is not a good solution.
>>
>>I need the table to fill the whole form (size should be relative to form
>>size, so if the form resizes the table should resize also). I thought this
>>was done with SWT.FULL_SELECTION at the creation-time of the table, but
>>that doesn't work.
>>
>>Any good ideas ?
>
>
> What kind of layout are you using?
> ---
> Sunil
>
>
GridLayout, I was planning to..
[Updated on: Tue, 20 November 2012 00:35] by Moderator Report message to a moderator
|
|
|
Powered by
FUDForum. Page generated in 0.03506 seconds