Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Archived » Visual Editor (VE) » CTabItems doesn't directly appear
CTabItems doesn't directly appear [message #123031] Thu, 13 April 2006 13:08 Go to next message
Eclipse UserFriend
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 Go to previous message
Eclipse UserFriend
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 Go to previous message
Eclipse UserFriend
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
Previous Topic:Getting a component's name
Next Topic:What's new page for VE 1.2?
Goto Forum:
  


Current Time: Thu Apr 25 22:23:33 GMT 2024

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

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

Back to the top