Skip to main content



      Home
Home » Eclipse Projects » JFace » Problem with scrollbar after ScrolledForm relayout
Problem with scrollbar after ScrolledForm relayout [message #15470] Sun, 21 June 2009 16:33 Go to next message
Eclipse UserFriend
Hello.

I use a ScrolledForm that has a GridLayout. When I hide some elements that are contained inside the
form (with the help of GridData.exclude) and call layout() on the form, then all elements disappear
as expected.
The problem is that the form still uses the whole space and the scrollbar remains as before.
Only when I resize my dialog the free space vanishes and the scrollbar is updated.
I tried redraw, update, layout on nearly all composites without a solution.
Any suggestion what else I can do?

Regards,
Kai
Re: Problem with scrollbar after ScrolledForm relayout [message #15503 is a reply to message #15470] Sun, 21 June 2009 16:43 Go to previous message
Eclipse UserFriend
I should have searched 2 mins longer ;-) The solution: ScrolledForm.reflow(true)

Kai Schlamp wrote:
> Hello.
>
> I use a ScrolledForm that has a GridLayout. When I hide some elements
> that are contained inside the form (with the help of GridData.exclude)
> and call layout() on the form, then all elements disappear as expected.
> The problem is that the form still uses the whole space and the
> scrollbar remains as before.
> Only when I resize my dialog the free space vanishes and the scrollbar
> is updated.
> I tried redraw, update, layout on nearly all composites without a solution.
> Any suggestion what else I can do?
>
> Regards,
> Kai
Previous Topic:Re: TableViewer Selectiona nd Focus out of synch
Next Topic:adding (horizontally growable) fieldeditor(s) inside a (horizontally growable) group in a preference
Goto Forum:
  


Current Time: Wed Mar 12 00:28:32 EDT 2025

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

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

Back to the top