Skip to main content



      Home
Home » Eclipse Projects » Remote Application Platform (RAP) » Problem with org.eclipse.swt.widgets.TabFolder
Problem with org.eclipse.swt.widgets.TabFolder [message #1058035] Fri, 10 May 2013 10:51 Go to next message
Eclipse UserFriend
Hi,

I have a little problem with org.eclipse.swt.widgets.TabFolder:
When there are more tabItems than fit into the width of the tabFolder, then they are cut off. See the example in the attached image.

This is produced by simply adding these lines of code to View.createPartControl(Composite) of the example template
'RAP Application with a View':

TabFolder folder = new TabFolder(parent , SWT.TOP);
TabItem item;	
for (int i=0; i<10; i++) {
  item = new TabItem(folder, SWT.NONE);
  item.setText("Item " + i);
}


In the RCP version there appear some arrow buttons to scroll the tabItems, but in the RAP these buttons are missing.

Thanks,
Julia
Re: Problem with org.eclipse.swt.widgets.TabFolder [message #1058199 is a reply to message #1058035] Mon, 13 May 2013 04:09 Go to previous messageGo to next message
Eclipse UserFriend
Hi Julia,

this is a known limitation of the TabFolder implementation [1]. We'd
love to re-implement the TabFolder [2], but couldn't find the time yet.

Regards,
Ralf

[1] https://bugs.eclipse.org/bugs/show_bug.cgi?id=215015
[2] https://bugs.eclipse.org/bugs/show_bug.cgi?id=329681
--
Ralf Sternberg

Twitter: @EclipseRAP
Blog: http://eclipsesource.com/blogs/

Professional services for RAP and RCP?
http://eclipsesource.com/services/rap/
Re: Problem with org.eclipse.swt.widgets.TabFolder [message #1058235 is a reply to message #1058199] Mon, 13 May 2013 05:57 Go to previous message
Eclipse UserFriend
Hi Ralf,

Reading the bug reports reminded me that there is also CTabFolder. This one has a drop down menu for the hidden tabs. Although it would be more elegant to scroll the tabs like e.g. Nightly[1] (and I guess Firefox, too) is doing it. But for now the CTabFolder works.
Thanks!

Regards,
Julia

[1] http://nightly.mozilla.org/
Previous Topic:[ANN] RAP 2.1 M2 is available
Next Topic:Kepler M7 war product
Goto Forum:
  


Current Time: Sun Jul 06 23:58:20 EDT 2025

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

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

Back to the top