Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Standard Widget Toolkit (SWT) » SWT group scrolling (help !!!)
SWT group scrolling (help !!!) [message #463772] Mon, 14 November 2005 20:46 Go to next message
jay vyas is currently offline jay vyasFriend
Messages: 1
Registered: July 2009
Junior Member
Hi :

Does anybody know how to scroll a group ? I always try


Group g = new Group(p, SWT.V_SCROLL);
g.getVerticalBar().setVisible(true);

but get a null pointer exception on the second line..

Please help !!! I have an urgent deadline in a bioinformatics app.
Re: SWT group scrolling (help !!!) [message #463785 is a reply to message #463772] Tue, 15 November 2005 08:27 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: friederich.kupzog.de

Hi,

you need to investigate ScrolledComposite. Put this into your group. See
the ACPI doc for ScrolledComposite for how to use it.

Regards,
Friederich

jay wrote:
> Hi :
> Does anybody know how to scroll a group ? I always try
>
> Group g = new Group(p, SWT.V_SCROLL);
> g.getVerticalBar().setVisible(true);
> but get a null pointer exception on the second line..
>
> Please help !!! I have an urgent deadline in a bioinformatics app.
>
>


--
Friederich Kupzog
Elektronik & Software
Neusser Str. 5-7
50670 Köln
Tel 0241 160696-1
Fax 0221 726670
www.kupzog.de/fkmk
Re: SWT group scrolling (help !!!) [message #463789 is a reply to message #463785] Tue, 15 November 2005 08:45 Go to previous message
Stefan Langer is currently offline Stefan LangerFriend
Messages: 236
Registered: July 2009
Senior Member
If you want the whole group to scroll put the group into a
scrolledcomposite if you want the content of the group to scroll put the
scrolledcomposite as the direct child of the group and put all other
composites in the scrolledcomposite.

Make sure that you define decent sizes on the child component and use
the hints for minheight and minwidth on the scrolledcomposite to make
sure that scrolling appears at the correct time.

Regards
Stefan

Friederich Kupzog wrote:
> Hi,
>
> you need to investigate ScrolledComposite. Put this into your group. See
> the ACPI doc for ScrolledComposite for how to use it.
>
> Regards,
> Friederich
>
> jay wrote:
>
>> Hi :
>> Does anybody know how to scroll a group ? I always try
>>
>> Group g = new Group(p, SWT.V_SCROLL);
>> g.getVerticalBar().setVisible(true);
>> but get a null pointer exception on the second line..
>>
>> Please help !!! I have an urgent deadline in a bioinformatics app.
>>
>
>
Previous Topic:Scroll problem in TextBox
Next Topic:HTML "Like" Table support
Goto Forum:
  


Current Time: Fri Apr 26 00:24:29 GMT 2024

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

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

Back to the top