Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Eclipse Scout » Coloring of tabs in AbstractTabBoxes
icon5.gif  Coloring of tabs in AbstractTabBoxes [message #532527] 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

[Updated on: Mon, 10 May 2010 11:54]

Report message to a moderator

Re: Coloring of tabs in AbstractTabBoxes [message #532548 is a reply to message #532527] 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 #532613 is a reply to message #532548] Mon, 10 May 2010 15:10 Go to previous messageGo to next message
Arthur vD is currently offline Arthur vDFriend
Messages: 52
Registered: March 2010
Member
Thanks for your fast reply. With Swing I'd use setForegroundAt() and setBackgroundAt() on a JTabbedPane. With SWT I'm not sure I've ever seen it.

So it isn't possible currently to either change the fore- or the background of individual tabs?
Re: Coloring of tabs in AbstractTabBoxes [message #533421 is a reply to message #532527] Thu, 13 May 2010 19:20 Go to previous messageGo to next message
Claudio Guglielmo is currently offline Claudio GuglielmoFriend
Messages: 256
Registered: March 2010
Senior Member
SWT: Even though 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 at the moment.

[Updated on: Thu, 13 May 2010 19:25]

Report message to a moderator

Re: Coloring of tabs in AbstractTabBoxes [message #534426 is a reply to message #533421] 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 #535037 is a reply to message #534426] Fri, 21 May 2010 07:27 Go to previous messageGo to next message
Claudio Guglielmo is currently offline Claudio GuglielmoFriend
Messages: 256
Registered: March 2010
Senior Member
Hi Arthur

I do not know if icons in tabboxes are supported so far but I recommend to create a change request ticket if you need it.

If you can't wait you could create your own tabbox and replace the existing one. A description how to to this can be found here:
http://wiki.eclipse.org/ExtendingScout

Hope that helps.

Regards
Claudio
Re: Coloring of tabs in AbstractTabBoxes [message #535050 is a reply to message #532527] 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!
Re: Coloring of tabs in AbstractTabBoxes [message #580575 is a reply to message #532548] Mon, 10 May 2010 15:10 Go to previous message
Arthur vD is currently offline Arthur vDFriend
Messages: 52
Registered: March 2010
Member
Thanks for your fast reply. With Swing I'd use setForegroundAt() and setBackgroundAt() on a JTabbedPane. With SWT I'm not sure I've ever seen it.

So it isn't possible currently to either change the fore- or the background of individual tabs?
Re: Coloring of tabs in AbstractTabBoxes [message #581198 is a reply to message #534426] Fri, 21 May 2010 07:27 Go to previous message
Claudio Guglielmo is currently offline Claudio GuglielmoFriend
Messages: 256
Registered: March 2010
Senior Member
Hi Arthur

I do not know if icons in tabboxes are supported so far but I recommend to create a change request ticket if you need it.

If you can't wait you could create your own tabbox and replace the existing one. A description how to to this can be found here:
http://wiki.eclipse.org/ExtendingScout

Hope that helps.

Regards
Claudio
Previous Topic:Re: Logging in Scout Framework
Next Topic:Coloring of tabs in AbstractTabBoxes
Goto Forum:
  


Current Time: Thu Apr 25 20:35:47 GMT 2024

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

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

Back to the top