RowLayout and scrollable Table in a View?!? [message #466031] |
Thu, 29 December 2005 11:53 |
Eclipse User |
|
|
|
Originally posted by: sebastian.bayerlein.huk-coburg.de
Hi all.
I need to layout a table and some buttons in a view. I provided the View
with a RowLayout.
The buttons are applied in a seperate composite with a GridLayout. This
Composite is placed top of the view.
Under these buttons, the table should be placed. For the table I also used
a GridLayout in a seperate Composite to position it in the view under the
Composite with the buttons.
The position of the table is correct, but it is not scrollable. That
means, that if the table is bigger than the view, I can't read the last
entries.
What I need, is the table adapted to the size of the view and that I can
scroll the entries of the table.
Has someone an idea, how to do that?
Thanks in advanced.
Sebastian
|
|
|
Re: RowLayout and scrollable Table in a View?!? [message #466039 is a reply to message #466031] |
Thu, 29 December 2005 16:54 |
Veronika Irvine Messages: 1272 Registered: July 2009 |
Senior Member |
|
|
GridData data = new GridData(SWT.LEFT, SWT.FILL, false, true);
table.setLayoutData(data);
By making the table grab excess vertical space and fill the vertical space,
the table will be restricted vertically to the space available.
"Sebastian Bayerlein" <sebastian.bayerlein@huk-coburg.de> wrote in message
news:bdbc9ae8e01ed131bde11b83f4e1b21b$1@www.eclipse.org...
> Hi all.
>
> I need to layout a table and some buttons in a view. I provided the View
> with a RowLayout. The buttons are applied in a seperate composite with a
> GridLayout. This Composite is placed top of the view. Under these buttons,
> the table should be placed. For the table I also used a GridLayout in a
> seperate Composite to position it in the view under the Composite with the
> buttons.
> The position of the table is correct, but it is not scrollable. That
> means, that if the table is bigger than the view, I can't read the last
> entries.
> What I need, is the table adapted to the size of the view and that I can
> scroll the entries of the table.
> Has someone an idea, how to do that?
>
> Thanks in advanced.
>
> Sebastian
>
|
|
|
Powered by
FUDForum. Page generated in 0.02856 seconds