Skip to main content



      Home
Home » Eclipse Projects » Remote Application Platform (RAP) » ScrolledForm's scrollbars shows up after refreshing
ScrolledForm's scrollbars shows up after refreshing [message #77557] Mon, 10 March 2008 04:09 Go to next message
Eclipse UserFriend
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 Go to previous messageGo to next message
Eclipse UserFriend
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 Go to previous message
Eclipse UserFriend
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
Previous Topic:Close Perspective
Next Topic:Background image won't show up on ScrolledForm
Goto Forum:
  


Current Time: Sun Aug 31 04:33:23 EDT 2025

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

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

Back to the top