Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Rich Client Platform (RCP) » No scroll bars for ScrolledComposite?
No scroll bars for ScrolledComposite? [message #462355] Sat, 27 January 2007 14:56 Go to next message
J Taylor is currently offline J TaylorFriend
Messages: 8
Registered: July 2009
Junior Member
I am trying to create a view that contains a scrolling frame at the bottom
2/3 of the screen. The view stars with a parent Composite. To that I add
a Composite for the top banner and a ScrolledComposite for the bottom. I
add my content to the ScrolledComposite but if it exceeds the limits of the
window it does not display scroll bars. My application already contains
another view that uses a ScrolledComposite for a scrolling table and it
works fine.

Can anyone suggest a course of action?
Re: No scroll bars for ScrolledComposite? [message #462370 is a reply to message #462355] Sat, 27 January 2007 18:15 Go to previous messageGo to next message
Snjezana Peco is currently offline Snjezana PecoFriend
Messages: 789
Registered: July 2009
Senior Member
Have you tried to add the following :

yourScrollableComposite.setExpandedHorizontal(true);
yourScrollableComposite.setExpandedVertical(true);
yourScrollableComposite.setContent(yourContent);

Snjeza

J Taylor wrote:
> I am trying to create a view that contains a scrolling frame at the bottom
> 2/3 of the screen. The view stars with a parent Composite. To that I add
> a Composite for the top banner and a ScrolledComposite for the bottom. I
> add my content to the ScrolledComposite but if it exceeds the limits of the
> window it does not display scroll bars. My application already contains
> another view that uses a ScrolledComposite for a scrolling table and it
> works fine.
>
> Can anyone suggest a course of action?
Re: No scroll bars for ScrolledComposite? [message #462877 is a reply to message #462370] Thu, 01 February 2007 20:24 Go to previous message
J Taylor is currently offline J TaylorFriend
Messages: 8
Registered: July 2009
Junior Member
scrolledComposite.setMinSize(composite.getSize());

scrolledComposite.setExpandHorizontal(true);

scrolledComposite.setExpandVertical(true);

scrolledComposite.setContent(composite);



I add objects to "composite" and then add it to "scolledComposite".

"Snjezana Peco" <snjeza.peco@gmail.com> wrote in message
news:epg4sf$uan$1@utils.eclipse.org...
> Have you tried to add the following :
>
> yourScrollableComposite.setExpandedHorizontal(true);
> yourScrollableComposite.setExpandedVertical(true);
> yourScrollableComposite.setContent(yourContent);
>
> Snjeza
>
> J Taylor wrote:
>> I am trying to create a view that contains a scrolling frame at the
>> bottom
>> 2/3 of the screen. The view stars with a parent Composite. To that I
>> add
>> a Composite for the top banner and a ScrolledComposite for the bottom. I
>> add my content to the ScrolledComposite but if it exceeds the limits of
>> the
>> window it does not display scroll bars. My application already contains
>> another view that uses a ScrolledComposite for a scrolling table and it
>> works fine.
>>
>> Can anyone suggest a course of action?
Previous Topic:Table row colors
Next Topic:Imaging App, MouseMoveListener for View
Goto Forum:
  


Current Time: Tue Sep 10 12:02:50 GMT 2024

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

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

Back to the top