Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » WindowBuilder » Building aTabFolder
Building aTabFolder [message #754308] Tue, 01 November 2011 21:58 Go to next message
Bill Brandley is currently offline Bill Brandley
Messages: 12
Registered: October 2011
Junior Member
I tried to use WindowBuilder to build a tabbed control but I am missing a step.
I created a TabFolder, I dropped 3 TabItems into it. I double clicked tab 1 and dropped a Button onto it. I wound up with a new tab, not a button on tab 1. What am I missing? Thanx, Bill.
Re: Building aTabFolder [message #754412 is a reply to message #754308] Wed, 02 November 2011 09:33 Go to previous messageGo to next message
Konstantin Scheglov is currently offline Konstantin Scheglov
Messages: 554
Registered: July 2009
Senior Member
Drop Button (or better Composite and then Button) on TabItem header.

index.php/fa/6014/0/


Konstantin Scheglov,
Google, Inc.
Re: Building aTabFolder [message #754441 is a reply to message #754308] Wed, 02 November 2011 10:37 Go to previous messageGo to next message
Eric Clayberg is currently offline Eric Clayberg
Messages: 847
Registered: July 2009
Location: Boston, MA
Senior Member
You need to watch where the red or green insertion point is. An SWT TabItem can have one and only one child, so, if you have not added a container (like a Composte) to a tab, dropping a new widget on the TabFolder will just create a new tab with that widget as its only child. If you want to drop a widget onto an existing tab, drop it on the tab itself, not the TabFolder. If you drop a Composite onto the TabItem's tab, it will become that tab's child, and you can then drop other widgets into the Composite. The easiest way to approach this is to start by dropping empty Composites into the TabFolder. A new TabItem will be created and inserted for each one.
Re: Building aTabFolder [message #754477 is a reply to message #754441] Wed, 02 November 2011 12:58 Go to previous message
Bill Brandley is currently offline Bill Brandley
Messages: 12
Registered: October 2011
Junior Member
A thanks to all of you. T'was precisely what I needed.
Previous Topic:Implementing in a web app
Next Topic:Problem installing WBpro3.7
Goto Forum:
  


Current Time: Wed Jul 30 17:30:12 EDT 2014

Powered by FUDForum. Page generated in 0.02890 seconds