|Scrolled and only one scrollbar [message #454085]
||Fri, 15 April 2005 19:50
| Aashish Patil
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
Powered by FUDForum
. Page generated in 0.02844 seconds