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.
Eric Clayberg Messages: 939 Registered: July 2009 Location: Boston, MA
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.