Win a copy of Mesos in Action this week in the Cloud/Virtualizaton forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Composite's Scrollbar issue

 
Jack clouseau
Greenhorn
Posts: 22
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic