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

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());


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

Current Time: Fri Jun 22 08:52:41 GMT 2018

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

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

Back to the top