aspose file tools*
The moose likes Swing / AWT / SWT and the fly likes Composite's Scrollbar issue Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » Swing / AWT / SWT
Bookmark "Composite Watch "Composite New topic
Author

Composite's Scrollbar issue

Jack clouseau
Greenhorn

Joined: May 14, 2008
Posts: 22
Hi,

I have a composite (with SWT.H_Scroll and SWT.V_Scroll specifications when it's initialized) and have added some controls like Label and text on top of this. Am using GridLayout for this composite and have specified the grabExcessHorizontal and vertical as TRUE and also vertical and horizontalAlignment's as GridData.Fill.

But the problem is, when the screen is drawn, the scrollbars are showing by default even though its fully focus. And the other major issues is, when the workbench is resized( basically when it's minimized) these controls are going out of focus and even though the scrollbars are visible (and also selectable)...these are not functioning.

when i use the scrollbars to move....only the position of the scrolbar is moved and the composite's hidden area are is still not visible.

Can anyone suggest me anything on this issue?

The hierarchy of this composite on which its drawn is like this MyComposite -> CTabItem -> CTabFolder -> Section -> ManagedForm -> ScrolledForm -> Composite.

For all of these the layouts used is GridLayout with the similar GridData specifications as mentioned above for MyComposite....

Any suggestions at the earliest is much appreciated....

Thanks

A good question is never answered. It is not a bolt to be tightened into place but a seed to be planted and to bear more seed toward the hope of greening the landscape of the idea!!!
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Composite's Scrollbar issue