Skip to main content



      Home
Home » Eclipse Projects » Eclipse Scout » Coloring of tabs in AbstractTabBoxes
Coloring of tabs in AbstractTabBoxes [message #580540] Mon, 10 May 2010 07:53 Go to next message
Eclipse UserFriend
Hi all

Is there a way to color individual tabs (or rather the labels of said tabs) of an org.eclipse.scout.rt.client.ui.forms.fields.tabbox.AbstractT abBox instance? Using setForegroundColor() on the individual GroupBox contained in the TabBox only colors the "body" text of the GroupBox, but not the tab label itself. There doesn't seem to exist anything like "setLabelForegroundColor()".

Thanks and kind regards

Arthur
Re: Coloring of tabs in AbstractTabBoxes [message #580563 is a reply to message #580540] Mon, 10 May 2010 08:51 Go to previous messageGo to next message
Eclipse UserFriend
Thanks for the post.
What would be the code in swt (or swing) to set the bg color of a tab?
We currently already have the workaround in swing that we paint the whole tab header as an icon (including text) since swing is not capable of styling the tab header text.

Therefore in swing we could have styling support for tab headers (bg, fg).

In SWT i am currently unsure about the possibilities of setting bg.
Re: Coloring of tabs in AbstractTabBoxes [message #581093 is a reply to message #580540] Thu, 13 May 2010 15:20 Go to previous messageGo to next message
Eclipse UserFriend
SWT: Although it is possible to color the tabs with the use of the CTabFolder it is not possible to have different colors for the single tabs (CTabItem) as far as I know.

So to answer your question: No it is not possible.
Re: Coloring of tabs in AbstractTabBoxes [message #581115 is a reply to message #581093] Wed, 19 May 2010 03:00 Go to previous messageGo to next message
Eclipse UserFriend
Thanks Claudio.

Using icons instead of text or background coloring doesn't seem to be supported either. Both SWT and Swing would support that. Is there a favorized way of adapting GUI elements on a per project base?
Re: Coloring of tabs in AbstractTabBoxes [message #581210 is a reply to message #580540] Fri, 21 May 2010 03:54 Go to previous message
Eclipse UserFriend
Perfect, thanks!
Previous Topic:Coloring of tabs in AbstractTabBoxes
Next Topic:Logging in Scout Framework
Goto Forum:
  


Current Time: Sat Jul 05 23:58:34 EDT 2025

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

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

Back to the top