Scrollbar inside a tabItem [message #827331] |
Fri, 23 March 2012 07:14 |
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);
}
|
|
|
Powered by
FUDForum. Page generated in 0.02625 seconds