Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Standard Widget Toolkit (SWT) » Providing Scrollbars
Providing Scrollbars [message #466659] Thu, 12 January 2006 14:15 Go to next message
Kate is currently offline KateFriend
Messages: 3
Registered: July 2009
Junior Member
Hi

When the launch configuaration tab that i have created is opened wih
default size, all the parameters that need to be entered are not visible
at times with different resolutions.

Is there any way to provide scroll bars with the main composite so that if
we resize the window the scroll bars automatically turns up and the user
may get a full view using them??

i have tried doing this ::

Composite comp = new Composite(parent, SWT.H_SCROLL | SWT.V_SCROLL);

where parent is the parameter in createControl(Composite parent)

Doing the abouve mentioned thind just creates vertical and horizontal
scroll bars but they seems to be not causing the window to be resized.
They are just visible not helping in the resizing of the windows.

Can anybody please respond to it..???


Thanks..!!

Kate
Re: Providing Scrollbars [message #466662 is a reply to message #466659] Thu, 12 January 2006 14:53 Go to previous messageGo to next message
Yves Harms is currently offline Yves HarmsFriend
Messages: 80
Registered: July 2009
Member
Hi Kate,
using SWT.H_SCROLL | SWT.V_SCROLL just displays the scollbars, the
scrolling itself is still up to you.

The widget ScrolledComposite is doing what you want.
See the SWT snippets for examples how to use it:
http://www.eclipse.org/swt/snippets/

Yves

> Hi
>
> When the launch configuaration tab that i have created is opened wih
> default size, all the parameters that need to be entered are not visible
> at times with different resolutions.
>
> Is there any way to provide scroll bars with the main composite so that
> if we resize the window the scroll bars automatically turns up and the
> user may get a full view using them??
>
> i have tried doing this ::
>
> Composite comp = new Composite(parent, SWT.H_SCROLL | SWT.V_SCROLL);
>
> where parent is the parameter in createControl(Composite parent)
>
> Doing the abouve mentioned thind just creates vertical and horizontal
> scroll bars but they seems to be not causing the window to be resized.
> They are just visible not helping in the resizing of the windows.
>
> Can anybody please respond to it..???
>
>
> Thanks..!!
>
> Kate
>
Re: Providing Scrollbars [message #466718 is a reply to message #466662] Mon, 16 January 2006 13:54 Go to previous message
Kate is currently offline KateFriend
Messages: 3
Registered: July 2009
Junior Member
Hi Yves

That was really a help. i was able to get he scrollbars finally with the
help of scrolledcomposite. That link was very helping.

Thanks a lot..!!!

Kate
Previous Topic:Browser/Javascript Communication
Next Topic:Getting the context menu for a View
Goto Forum:
  


Current Time: Wed Apr 24 18:00:31 GMT 2024

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

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

Back to the top