Skip to main content



      Home
Home » Eclipse Projects » Standard Widget Toolkit (SWT) » Scrollbar not appearing at startup
Scrollbar not appearing at startup [message #534184] Tue, 18 May 2010 06:15 Go to next message
Eclipse UserFriend
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 08:03 Go to previous message
Eclipse UserFriend
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: Wed Jul 23 13:43:05 EDT 2025

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

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

Back to the top