Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Standard Widget Toolkit (SWT) » setBackground for ToolItem
setBackground for ToolItem [message #478074] Thu, 06 August 2009 08:11 Go to next message
T. Wilhelm is currently offline T. WilhelmFriend
Messages: 129
Registered: July 2009
Senior Member
Hey all,

i have an rcp application and added some ToolItems to my Toolbar. Now i
want to change the Background Color of my Toolitem and set a larger font,
but i cannot find any method like setBackground() or setFont() like i.e.
in a TableItem.

Is it possible to set another font (or only fontsize) and background to a
ToolItem?
Thanks alot and greetz
Thomas
Re: setBackground for ToolItem [message #479245 is a reply to message #478074] Mon, 10 August 2009 12:49 Go to previous messageGo to next message
T. Wilhelm is currently offline T. WilhelmFriend
Messages: 129
Registered: July 2009
Senior Member
Is this too easy or impossible ;-)?
Re: setBackground for ToolItem [message #481854 is a reply to message #479245] Mon, 24 August 2009 14:59 Go to previous messageGo to next message
Grant Gayed is currently offline Grant GayedFriend
Messages: 2150
Registered: July 2009
Senior Member
Hi, sorry for the late reply,

This isn't currently supported. I could not find any pre-existing requests
for it, so I don't know if there is a technical reason for these omissions,
or if they were simply deemed to not be valuable. If you want you can log a
Feature Request for this at
https://bugs.eclipse.org/bugs/enter_bug.cgi?product=Platform &component=SWT&bug_severity=enhancement .

A workaround that should somewhat get around this would be to create an
Image with the text and background colour you want and set this image as the
ToolItem content.

Grant


"T. Wilhelm" <t.wilhelm@msh.de> wrote in message
news:1c9be3f4e72fd56487bd6f328977b505$1@www.eclipse.org...
> Is this too easy or impossible ;-)?
>
Re: setBackground for ToolItem [message #482063 is a reply to message #481854] Tue, 25 August 2009 10:04 Go to previous message
T. Wilhelm is currently offline T. WilhelmFriend
Messages: 129
Registered: July 2009
Senior Member
Hey Grant,

thanks for your reply, better getting an answer late than getting no
answer ;-) I discussed about that problem with other developers and we
came to the result that a toolbar is a toolbar and maybe should not have a
pink (or any other colored) background ;-) and thats the reason why i
wonŽt do a feature request. Starting doing such things makes the
application not to look native, so we try to convince our boss to get rid
of this requirement ;-)
Anyway thanks for reply and your workaround,

Thomas
Previous Topic:Re: Strange threads in cocoa rcp application
Next Topic:libswt-motif-3452.so : Bad Magic Number
Goto Forum:
  


Current Time: Thu Mar 28 18:43:18 GMT 2024

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

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

Back to the top