Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Standard Widget Toolkit (SWT) » Scrollbar not appearing at startup
Scrollbar not appearing at startup [message #534184] Tue, 18 May 2010 10:15 Go to next message
Geejay is currently offline GeejayFriend
Messages: 160
Registered: February 2010
Senior Member
Hello peoples,

I have a ScrolledForm, and a number of nested Sections (with FillLayouts),
which have nested Composites with GridLayouts.

At the start of the app, the editor appears without a vertical scrollbar,
even though the content of the editor is way past the bottom of the visible
area.

When I hide the top section, and re-expand it, then the vertical scroll bar
appears on the editor.

Am I building this form wrong? Would it be better to use TableWrapLayout?
Any ideas as to why the vertical scroll bar doesn't appear after the form is
initially rendered?

Thanks

Greg
Re: Scrollbar not appearing at startup [message #534220 is a reply to message #534184] Tue, 18 May 2010 12:03 Go to previous message
Geejay is currently offline GeejayFriend
Messages: 160
Registered: February 2010
Senior Member
Using:

Composite formBody = form.getBody();
formBody.setLayout(new TableWrapLayout());

solves the problem. Maybe when dealing with forms, the most natural layout
is the TableWrapLayout, makes sense, as the Forms UI is meant to resemble
HTML.

"geejay" <gjmcknight@schlagundrahm.ch> wrote in message
news:hstpbd$va7$1@build.eclipse.org...
> Hello peoples,
>
> I have a ScrolledForm, and a number of nested Sections (with FillLayouts),
> which have nested Composites with GridLayouts.
>
> At the start of the app, the editor appears without a vertical scrollbar,
> even though the content of the editor is way past the bottom of the
> visible area.
>
> When I hide the top section, and re-expand it, then the vertical scroll
> bar appears on the editor.
>
> Am I building this form wrong? Would it be better to use TableWrapLayout?
> Any ideas as to why the vertical scroll bar doesn't appear after the form
> is initially rendered?
>
> Thanks
>
> Greg
Previous Topic:Changing parent of widgets problem
Next Topic:How to repair canvas?
Goto Forum:
  


Current Time: Sat Aug 24 21:55:19 GMT 2019

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

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

Back to the top