Skip to main content

Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Standard Widget Toolkit (SWT) » Scrolled and only one scrollbar
Scrolled and only one scrollbar [message #454085] Fri, 15 April 2005 19:50
Aashish Patil is currently offline Aashish PatilFriend
Messages: 39
Registered: July 2009

I want to enable only the vertical scrollbar for a ScrolledComposite and
have the horizontal area fit the current width of the viewing area.

To do this I am trying the following,

ScrolledComposite scrlComp = ...
Composite containedComp = ...

Point pt = containedComp.computeSize(SWT.DEFAULT,SWT.DEFAULT);
int clWidth = scrlComp.getClientArea().width;


The problem is that the width of the client area always returns zero (0).
Not sure why that is happening. Any idea?

Parent of the Scrolled Composite is the container of a MultiPageEditor in

Previous Topic:3.1M6: accelerator on action = NullPointerException in ActionContributionItem.update
Next Topic:Launching the system mail reader
Goto Forum:

Current Time: Tue Mar 02 15:14:59 GMT 2021

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

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

Back to the top