Skip to main content



      Home
Home » Eclipse Projects » Standard Widget Toolkit (SWT) » SWT group scrolling (help !!!)
SWT group scrolling (help !!!) [message #463772] Mon, 14 November 2005 15:46 Go to next message
Eclipse UserFriend
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 03: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 03:45 Go to previous message
Eclipse UserFriend
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: Sun Jul 06 02:29:05 EDT 2025

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

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

Back to the top