Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Standard Widget Toolkit (SWT) » SashForm/Scroll Bars problem
SashForm/Scroll Bars problem [message #458689] Tue, 19 July 2005 13:41 Go to next message
Alex Bernstein is currently offline Alex BernsteinFriend
Messages: 3
Registered: July 2009
Junior Member
Hi,

My editor uses SashForm to dynamically update what's displayed on the
screen. In other words, when a selection elsewhere changes, I use certain
rule to locate an appropriate composite, and then use
SashForm.setMaximazedControl() to display the info. At any given time
there one of the child composites in my SashForm is maximazed.

The problem I am having is that if the contents of the maximazed composite
are too tall, there is no vertical scrollbar (I do not need a horizontal
one). If I create my composite with SWT.V_SCROLL, then the scrollbar stay
visible all the time and the scrooling is messed up. I would prefer the
scroolbar to go away when not needed.

Thank you,
Alex
Re: SashForm/Scroll Bars problem [message #458691 is a reply to message #458689] Tue, 19 July 2005 14:44 Go to previous messageGo to next message
Veronika Irvine is currently offline Veronika IrvineFriend
Messages: 1272
Registered: July 2009
Senior Member
Have a look at:

http://dev.eclipse.org/viewcvs/index.cgi/org.eclipse.swt.sni ppets/src/org/eclipse/swt/snippets/Snippet5.java?rev=HEAD&am p;content-type=text/vnd.viewcvs-markup

It uses ScrolledComposite to manage the scrollbar.

What is in your child composite? Does it contain one child or several?
What kind of layout do you have on the child composite? It may not be
neccessary to use ScrolledComposite depending on the answer to these
questions.


"Alexander Bernstein" <alexberns@us.ibm.com> wrote in message
news:98ed8e85a9b952f852cadc7dda1b33e6$1@www.eclipse.org...
> Hi,
>
> My editor uses SashForm to dynamically update what's displayed on the
> screen. In other words, when a selection elsewhere changes, I use certain
> rule to locate an appropriate composite, and then use
> SashForm.setMaximazedControl() to display the info. At any given time
> there one of the child composites in my SashForm is maximazed.
>
> The problem I am having is that if the contents of the maximazed composite
> are too tall, there is no vertical scrollbar (I do not need a horizontal
> one). If I create my composite with SWT.V_SCROLL, then the scrollbar stay
> visible all the time and the scrooling is messed up. I would prefer the
> scroolbar to go away when not needed.
>
> Thank you,
> Alex
>
Re: SashForm/Scroll Bars problem [message #458701 is a reply to message #458691] Tue, 19 July 2005 15:52 Go to previous message
Alex Bernstein is currently offline Alex BernsteinFriend
Messages: 3
Registered: July 2009
Junior Member
Hi Veronika,

Thank you for your help.

My Composite is just a composite with GridLayout. The contents of are
unknown in advance, as the composite is passed as a parent to client code,
which is supposed to layout the controls.
Previous Topic:How to fetch system stadard icons (for cut, copy, paste ...)?
Next Topic:Event bubbling
Goto Forum:
  


Current Time: Sun Oct 25 06:20:59 GMT 2020

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

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

Back to the top