Skip to main content



      Home
Home » Eclipse Projects » WindowBuilder » Building aTabFolder
Building aTabFolder [message #754308] Tue, 01 November 2011 21:58 Go to next message
Eclipse UserFriend
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
Eclipse UserFriend
Drop Button (or better Composite and then Button) on TabItem header.

index.php/fa/6014/0/
Re: Building aTabFolder [message #754441 is a reply to message #754308] Wed, 02 November 2011 10:37 Go to previous messageGo to next message
Eclipse UserFriend
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
Eclipse UserFriend
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 23 12:57:00 EDT 2025

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

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

Back to the top