Home » Archived » Visual Editor (VE) » CTabItems doesn't directly appear
CTabItems doesn't directly appear [message #123031] |
Thu, 13 April 2006 13: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" );
|
|
|
Re: CTabItems doesn't directly appear [message #123083 is a reply to message #123031] |
Thu, 13 April 2006 14:10 |
Eclipse User |
|
|
|
Originally posted by: richkulp.us.NO_SPAM.ibm.com
If you are talking about in your running code, then you should be using
the eclipse.platform.swt newsgroup. This newsgroup is for the visual editor.
walidito wrote:
> 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" );
>
--
Thanks,
Rich Kulp
|
|
|
Re: CTabItems doesn't directly appear [message #612631 is a reply to message #123031] |
Thu, 13 April 2006 14:10 |
Eclipse User |
|
|
|
Originally posted by: richkulp.us.NO_SPAM.ibm.com
If you are talking about in your running code, then you should be using
the eclipse.platform.swt newsgroup. This newsgroup is for the visual editor.
walidito wrote:
> 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" );
>
--
Thanks,
Rich Kulp
|
|
|
Goto Forum:
Current Time: Thu Apr 25 22:23:33 GMT 2024
Powered by FUDForum. Page generated in 0.02880 seconds
|