Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Standard Widget Toolkit (SWT) » Table size in Form
Table size in Form [message #458169] Mon, 11 July 2005 14:50 Go to next message
Eclipse UserFriend
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 Go to previous messageGo to next message
Eclipse UserFriend
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 Go to previous message
Eclipse UserFriend
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

Previous Topic:getActiveShell() on linux-gtk
Next Topic:jdk 1.5.0
Goto Forum:
  


Current Time: Fri Apr 26 19:35:31 GMT 2024

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

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

Back to the top