Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » scout » Coloring of tabs in AbstractTabBoxes
Coloring of tabs in AbstractTabBoxes [message #580540] Mon, 10 May 2010 07:53 Go to next message
Arthur vD is currently offline Arthur vD
Messages: 50
Registered: March 2010
Member
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
Ivan Motsch is currently offline Ivan Motsch
Messages: 99
Registered: March 2010
Member
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
Claudio Guglielmo is currently offline Claudio Guglielmo
Messages: 126
Registered: March 2010
Senior Member
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
Arthur vD is currently offline Arthur vD
Messages: 50
Registered: March 2010
Member
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
Arthur vD is currently offline Arthur vD
Messages: 50
Registered: March 2010
Member
Perfect, thanks!
Previous Topic:Re: Logging in Scout Framework
Next Topic:Coloring of tabs in AbstractTabBoxes
Goto Forum:
  


Current Time: Fri Apr 18 16:55:11 EDT 2014

Powered by FUDForum. Page generated in 0.22092 seconds