Skip to main content



      Home
Home » Eclipse Projects » Standard Widget Toolkit (SWT) » Scrollbar inside a tabItem
Scrollbar inside a tabItem [message #827331] Fri, 23 March 2012 03:14
Eclipse UserFriend
Hi,

I am creating multiple tabs inside a tabfolder (tabfolder is made from a Scrolled Composite) .

And, inside a tab i have to add multiple composites. but tab.setControl method allows to set control for one composite.
So, i have again made a composite and made this composite as parent of my three composites and then set this new composite in tabs control.
this is creating my scrollbar issue. My scrollbar goes till half way and then again starts going up.

Please suggest how to add multiple composites in one control of tab.

Code snippet
===================


public void createPartControl(TabItem tab)
{

pluginComposite = tab.getParent();
createToolbarComposite(pluginComposite );
createStatusComposite(pluginComposite );
createTableComposite(pluginComposite );


Composite composite = new Composite(pluginComposite , SWT.NONE);
composite.setLayout(new FormLayout());
toolbarComposite.setParent(composite);
statusComposite.setParent(composite);
TableCtl.setParent(composite);

tab.setControl(composite);

}
Previous Topic:Dispose question
Next Topic:Browser IE not open link in a tab
Goto Forum:
  


Current Time: Sat Aug 30 20:04:25 EDT 2025

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

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

Back to the top