Skip to main content


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 07:14
Jyoti Agarwal is currently offline Jyoti AgarwalFriend
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: Sat Apr 27 05:23:00 GMT 2024

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

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

Back to the top