ScrolledForm's scrollbars shows up after refreshing [message #77557] |
Mon, 10 March 2008 04:09  |
Eclipse User |
|
|
|
Hi,
I've implemented the following snippet in ViewPart:
private FormToolkit toolkit = null;
private ScrolledForm form = null;
public void createPartControl(Composite parent)
{
toolkit = new FormToolkit(parent.getDisplay());
form = toolkit.createScrolledForm(parent);
form.pack();
}
public void setFocus()
{
form.setFocus();
}
On the first run the ScrolledForm's scrolledbars get hidden, but after
refreshing it (w/o shutting down OSGI), it will show up until I click the
ScrolledForm area.
Only if I remove the 'form.pack()' the scrollbars won't show up on the
subsequent browser refresh, but in RCP examples there's a call to
form.pack() method.
Regards,
Setya
|
|
|
Re: ScrolledForm's scrollbars shows up after refreshing [message #77772 is a reply to message #77557] |
Tue, 11 March 2008 02:56   |
Eclipse User |
|
|
|
Originally posted by: fappel.innoopract.com
Hi,
hm, if the layout works correctly without the call of pack, I wouldn't
do it... But anyhow it looks like a bug - feel free to create a new
bugzilla entry.
Ciao
Frank
-----Ursprüngliche Nachricht-----
Von: Setya [mailto:jsetya@gmail.com]
Bereitgestellt: Montag, 10. März 2008 09:10
Bereitgestellt in: eclipse.technology.rap
Unterhaltung: ScrolledForm's scrollbars shows up after refreshing
Betreff: ScrolledForm's scrollbars shows up after refreshing
Hi,
I've implemented the following snippet in ViewPart:
private FormToolkit toolkit = null;
private ScrolledForm form = null;
public void createPartControl(Composite parent) {
toolkit = new FormToolkit(parent.getDisplay());
form = toolkit.createScrolledForm(parent);
form.pack();
}
public void setFocus()
{
form.setFocus();
}
On the first run the ScrolledForm's scrolledbars get hidden, but after
refreshing it (w/o shutting down OSGI), it will show up until I click
the ScrolledForm area.
Only if I remove the 'form.pack()' the scrollbars won't show up on the
subsequent browser refresh, but in RCP examples there's a call to
form.pack() method.
Regards,
Setya
|
|
|
Re: ScrolledForm's scrollbars shows up after refreshing [message #77803 is a reply to message #77772] |
Tue, 11 March 2008 03:32  |
Eclipse User |
|
|
|
Frank,
> Only if I remove the 'form.pack()' the scrollbars won't show up on the
> subsequent browser refresh, but in RCP examples there's a call to
> form.pack() method.
Sorry, turns out that I also have to remove the call 'form.setfocus()' in
order for the scrollbars won't get displayed on subsequent refresh.
Removing 'form.pack()' alone won't do it.
I've created the bugs entry #222175.
Thanks and Regards,
Setya
|
|
|
Powered by
FUDForum. Page generated in 0.04266 seconds