Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Standard Widget Toolkit (SWT) » 2 trees in sync with one scrollbar
2 trees in sync with one scrollbar [message #460656] Fri, 02 September 2005 13:53 Go to next message
Ciaran O Cleirigh is currently offline Ciaran O CleirighFriend
Messages: 4
Registered: July 2009
Junior Member
Hi - I have 2 trees side by side in a composite. I want both to use only
the composite (vertical) scrollbar as oppose to each using their own. I've
tried setVisible(false) but as soon as a resizing takes place the
scrollbar appears plus this does not force it to use its parent. Is there
a way of forcing a Tree Widget to use its Parent scrollBar. Any help
appreciated.
Re: 2 trees in sync with one scrollbar [message #460720 is a reply to message #460656] Mon, 05 September 2005 12:24 Go to previous message
Yves Harms is currently offline Yves HarmsFriend
Messages: 80
Registered: July 2009
Member
You could try to put the two trees into a ScrolledComposite.
This way they should always have enough space available and probably
won't display their own scrollbar.

See the SWT teams Snippets page for an exmaple how to use ScrolledComposite.

Yves


exquisitus wrote:
> Hi - I have 2 trees side by side in a composite. I want both to use only
> the composite (vertical) scrollbar as oppose to each using their own.
> I've tried setVisible(false) but as soon as a resizing takes place the
> scrollbar appears plus this does not force it to use its parent. Is
> there a way of forcing a Tree Widget to use its Parent scrollBar. Any
> help appreciated.
>
Previous Topic:Propagating changes from ContentProvider to JFace View
Next Topic:Customizing TreeItem ?
Goto Forum:
  


Current Time: Sun Jun 16 23:37:44 GMT 2019

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

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

Back to the top