Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Eclipse Scout » Coloring of tabs in AbstractTabBoxes
Coloring of tabs in AbstractTabBoxes [message #580540] Mon, 10 May 2010 11:53 Go to next message
Arthur vD is currently offline Arthur vDFriend
Messages: 52
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 12:51 Go to previous messageGo to next message
Ivan Motsch is currently offline Ivan MotschFriend
Messages: 154
Registered: March 2010
Senior 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 19:20 Go to previous messageGo to next message
Claudio Guglielmo is currently offline Claudio GuglielmoFriend
Messages: 259
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 07:00 Go to previous messageGo to next message
Arthur vD is currently offline Arthur vDFriend
Messages: 52
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 07:54 Go to previous message
Arthur vD is currently offline Arthur vDFriend
Messages: 52
Registered: March 2010
Member
Perfect, thanks!
Previous Topic:Coloring of tabs in AbstractTabBoxes
Next Topic:Logging in Scout Framework
Goto Forum:
  


Current Time: Mon Dec 09 11:02:13 GMT 2024

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

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

Back to the top