CTabItems doesn't directly appear [message #612623] |
Thu, 13 April 2006 09:08 |
Eclipse User |
|
|
|
Originally posted by: walidito.yahoo.fr
Hello,
I have developped a menu that displays cTabItems corresponding to the
selected option.
The problem is, when choosing an option of the menu for the first time,
the user have to click on the "top" of the tabItem (the text) to make the
content of the Item appear (in my case, a Composite with many elements).
Actually, I would like that the "content" (my composite groupBoxAddUsers)
displays directly. I know it is possible, but don't know how.
Please, help !
Here is a part of my code :
...
cTabFolderU = new CTabFolder(compoUsers,SWT.BORDER);
cTabFolderU.setBounds(new
org.eclipse.swt.graphics.Rectangle(27,120,480,320));
cTabFolderU.setBorderVisible(false);
cTabFolderU.setSimple(false);
***
groupBoxAddUsers = new GroupBoxAddUsers(cTabFolderU, SWT.NONE);
CTabItem cTabItem = new CTabItem(cTabFolderU, SWT.CLOSE);
cTabItem.setControl(groupBoxAddUsers);
cTabItem.setText("Add" );
|
|
|
Powered by
FUDForum. Page generated in 0.07369 seconds