Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Standard Widget Toolkit (SWT) » Refresh problem
Refresh problem [message #492241] Mon, 19 October 2009 14:48 Go to next message
Mario Cervera is currently offline Mario CerveraFriend
Messages: 66
Registered: July 2009
Member
Hi,

this might be an easy question but I can't seem to solve it. My problem is
the following: I have a section within a property tab. This section can in
runtime change its size (for example when showing details of a master
object). In the property tab there are other sections. I've managed to show
the whole tab properly when altering the size of this section but the scroll
bar doesn't change, so it doesn't allow the user to scroll through the whole
tab without having to maximize it (or any other similar work-around). Has
anyone faced a similar problem? How can I solve it?

Thanks in advance :-)

Mario
Re: Refresh problem [message #492525 is a reply to message #492241] Tue, 20 October 2009 16:03 Go to previous messageGo to next message
Grant Gayed is currently offline Grant GayedFriend
Messages: 2150
Registered: July 2009
Senior Member
This is a case where some running code would be particularly helpful,
especially since some of the participants you mention (section and property
tab in particular) don't come from swt. Are you able to provide something
that runs and shows your problem? In the absence of this, my only guess is
to call layout() on the top-most Composite in the tab, which should cascade
down through the descendent controls and may resize someone appropriately to
fix your case.

(the ideal snippet template:
http://www.eclipse.org/swt/faq.php#whatisasnippet )

Grant


"Mario Cervera" <mcervera@pros.upv.es> wrote in message
news:hbhu7g$5vb$1@build.eclipse.org...
> Hi,
>
> this might be an easy question but I can't seem to solve it. My problem is
> the following: I have a section within a property tab. This section can in
> runtime change its size (for example when showing details of a master
> object). In the property tab there are other sections. I've managed to
show
> the whole tab properly when altering the size of this section but the
scroll
> bar doesn't change, so it doesn't allow the user to scroll through the
whole
> tab without having to maximize it (or any other similar work-around). Has
> anyone faced a similar problem? How can I solve it?
>
> Thanks in advance :-)
>
> Mario
>
>
Re: Refresh problem [message #492754 is a reply to message #492525] Wed, 21 October 2009 15:09 Go to previous messageGo to next message
Mario Cervera is currently offline Mario CerveraFriend
Messages: 66
Registered: July 2009
Member
Hi,

I've already tried with "layout". I have something like this (parent would
be the parent composite of my section):

parent.getParent().getParent().layout(true, true)

in an attempt to do what you propose. My problem is that when the section
gets bigger the top most composite doesn't seem to change its size, so the
scroll bar is not modified and so I can't scroll down the whole tab. I've
also tried calling pack, redraw and so on ... but nothing works :-(

Mario

"Grant Gayed" <grant_gayed@ca.ibm.com> escribi
Re: Refresh problem [message #493719 is a reply to message #492754] Tue, 27 October 2009 16:35 Go to previous message
Mario Cervera is currently offline Mario CerveraFriend
Messages: 66
Registered: July 2009
Member
I've hit the solution. The problem was I have to update the size of the
ScrolledComposite.

If someone has the same problem have a look at the method
resizeScrolledComposite() in the class TabbedPropertySheetPage.

Mario

"Mario Cervera" <mcervera@pros.upv.es> escribi
Previous Topic:is swt(draw2d) suitable for cad software development?
Next Topic:Which font for all platforms?
Goto Forum:
  


Current Time: Mon Dec 09 09:44:00 GMT 2019

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

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

Back to the top