Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Standard Widget Toolkit (SWT) » Scrollbar inside a tabItem
Scrollbar inside a tabItem [message #827331] Fri, 23 March 2012 03:14
Jyoti Agarwal is currently offline Jyoti Agarwal
Messages: 5
Registered: January 2012
Junior Member
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: Tue Jul 29 15:04:33 EDT 2014

Powered by FUDForum. Page generated in 0.09705 seconds