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
Member
Hi,

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;

containedComp.setSize(pt.x,clWidth);

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
Eclipse.

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


Current Time: Sat Apr 20 03:55:36 GMT 2024

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

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

Back to the top