Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Standard Widget Toolkit (SWT) » RowLayout and scrollable Table in a View?!?
RowLayout and scrollable Table in a View?!? [message #466031] Thu, 29 December 2005 11:53 Go to next message
Eclipse UserFriend
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 Go to previous message
Veronika Irvine is currently offline Veronika IrvineFriend
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
>
Previous Topic:Can't hide selection in Table.
Next Topic:radio button - setselection - listener
Goto Forum:
  


Current Time: Mon Sep 23 18:16:16 GMT 2019

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

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

Back to the top