Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Standard Widget Toolkit (SWT) » Scrolling composite
Scrolling composite [message #458920] Tue, 26 July 2005 13:48 Go to next message
Eclipse UserFriend
Originally posted by: BertinK.tiscali.nl

I created a composite and set vertical scrolling as style. Then when I
show the composite it has a vertical scroll bar. I did not expect this
because I added no other control to the composite.
Then I start adding other controls to the composite. These controls take
more space then the composite has. When I then use the scoll bar nothing
happens. The only thing that is scrolling is the button in the scroll
bar, not the controls in the composite.

I expected the same behaviour as a the scrollbars in a table.

Is my expectation wrong of the scroll behaviour or is there some other
nifty way to use this.
Re: Scrolling composite [message #458921 is a reply to message #458920] Tue, 26 July 2005 15:01 Go to previous message
Yves Harms is currently offline Yves HarmsFriend
Messages: 80
Registered: July 2009
Member
The SWT.V_SCROLL of Composite just adds a scrollbar,
but doesn't scroll the content for you.

Try ScrolledComposite instead.
Examples:
http://dev.eclipse.org/viewcvs/index.cgi/%7Echeckout%7E/plat form-swt-home/dev.html#snippets


Yves

> I created a composite and set vertical scrolling as style. Then when I
> show the composite it has a vertical scroll bar. I did not expect this
> because I added no other control to the composite.
> Then I start adding other controls to the composite. These controls take
> more space then the composite has. When I then use the scoll bar nothing
> happens. The only thing that is scrolling is the button in the scroll
> bar, not the controls in the composite.
>
> I expected the same behaviour as a the scrollbars in a table.
>
> Is my expectation wrong of the scroll behaviour or is there some other
> nifty way to use this.
Previous Topic:Add drag and drop on a TableViewer
Next Topic:Table (Item) color for selected state.
Goto Forum:
  


Current Time: Wed Oct 21 07:22:32 GMT 2020

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

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

Back to the top