Problem with scrollbar after ScrolledForm relayout [message #15470] |
Sun, 21 June 2009 16:33  |
Eclipse User |
|
|
|
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  |
Eclipse User |
|
|
|
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
|
|
|
Powered by
FUDForum. Page generated in 0.07611 seconds