Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Standard Widget Toolkit (SWT) » Setting foreground color in for disabled CombBoxes
Setting foreground color in for disabled CombBoxes [message #443812] Fri, 01 October 2004 10:20 Go to next message
Thomas Schindl is currently offline Thomas SchindlFriend
Messages: 6570
Registered: July 2009
Senior Member
Hi,

can I somehow set the forground color of disabled ComboBoxes because
when disabled the content is very hard to read. For Text-Fields I'm
using the setEditable-method which does not exists for comboboxes.

Tom
Re: Setting foreground color in for disabled CombBoxes [message #444228 is a reply to message #443812] Fri, 08 October 2004 20:53 Go to previous message
Grant Gayed is currently offline Grant GayedFriend
Messages: 2150
Registered: July 2009
Senior Member
Tom,

There is not a way to specify visual attributes of a widget for when it is
disabled. But, since the platforms typically base a widget's disabled
appearance somewhat on its enabled appearance, you could experiment with
changing its foreground colour to something darker, or its font to bold,
whenever you invoke combo.setEnabled(false).

Grant

"Tom Schindl" <tom.schindl@bestsolution.at> wrote in message
news:cjjarn$lj4$2@eclipse.org...
> Hi,
>
> can I somehow set the forground color of disabled ComboBoxes because
> when disabled the content is very hard to read. For Text-Fields I'm
> using the setEditable-method which does not exists for comboboxes.
>
> Tom
Previous Topic:How to add information to a list
Next Topic:System-wide events - REPOST
Goto Forum:
  


Current Time: Wed Oct 21 01:55:34 GMT 2020

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

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

Back to the top