Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Standard Widget Toolkit (SWT) » button.setEnabled(false) - how to control the button image?
button.setEnabled(false) - how to control the button image? [message #448424] Mon, 10 January 2005 07:46 Go to next message
Eclipse UserFriend
Originally posted by: patrick.kaegi.netcetera.ch

Hi everybody

i've a problem with the image set on the button. if i setEnabled(false) on
the button, the button
lost the image and makes a dark-grey 16x16 square on the button.

does anybody know how to control that - or is the something like a bug? ;-)

thanks in advance
patrick
Re: button.setEnabled(false) - how to control the button image? [message #448448 is a reply to message #448424] Mon, 10 January 2005 12:29 Go to previous messageGo to next message
Charlie Surface is currently offline Charlie SurfaceFriend
Messages: 40
Registered: July 2009
Member
Which platform?

Charlie


Patrick Kaegi wrote:

> Hi everybody
>
> i've a problem with the image set on the button. if i setEnabled(false)
> on the button, the button
> lost the image and makes a dark-grey 16x16 square on the button.
>
> does anybody know how to control that - or is the something like a bug? ;-)
>
> thanks in advance
> patrick
>
>
>
Re: button.setEnabled(false) - how to control the button image? [message #448449 is a reply to message #448448] Mon, 10 January 2005 12:35 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: patrick.kaegi.netcetera.ch

The RCP application runs on windows xp!

thanks
patrick


ps. if you like i can also post the printscreen!




Charlie Surface wrote:

> Which platform?

> Charlie


> Patrick Kaegi wrote:

>> Hi everybody
>>
>> i've a problem with the image set on the button. if i setEnabled(false)
>> on the button, the button
>> lost the image and makes a dark-grey 16x16 square on the button.
>>
>> does anybody know how to control that - or is the something like a bug? ;-)
>>
>> thanks in advance
>> patrick
>>
>>
>>
Re: button.setEnabled(false) - how to control the button image? [message #448464 is a reply to message #448424] Mon, 10 January 2005 18:07 Go to previous messageGo to next message
Steve Northover is currently offline Steve NorthoverFriend
Messages: 1636
Registered: July 2009
Senior Member
The algorithm that operating systems use to gray out an image is different
between operating systems and sensitive to the colors in the image. In
particular, Windows sometimes does a bad job of graying out icons, producing
a dark square. You can consider providing a grayed out image yourself and
setting it into the button when you disable it or you can tweak the colors
in the original image.

"Patrick Kaegi" <patrick.kaegi@netcetera.ch> wrote in message
news:crtbta$rg1$1@www.eclipse.org...
> Hi everybody
>
> i've a problem with the image set on the button. if i setEnabled(false) on
> the button, the button
> lost the image and makes a dark-grey 16x16 square on the button.
>
> does anybody know how to control that - or is the something like a bug?
;-)
>
> thanks in advance
> patrick
>
>
>
Re: button.setEnabled(false) - how to control the button image? [message #449964 is a reply to message #448424] Wed, 02 February 2005 10:28 Go to previous message
Omry Yadan is currently offline Omry YadanFriend
Messages: 45
Registered: July 2009
Member
Just bumped into the exact same problem.
anyone?


Patrick Kaegi wrote:
> Hi everybody
>
> i've a problem with the image set on the button. if i setEnabled(false)
> on the button, the button
> lost the image and makes a dark-grey 16x16 square on the button.
>
> does anybody know how to control that - or is the something like a bug? ;-)
>
> thanks in advance
> patrick
>
>
>
Previous Topic:Button image disappears when I call Button.setEnabled(false)
Next Topic:Wait cursor - PDA
Goto Forum:
  


Current Time: Sat Apr 20 01:12:08 GMT 2024

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

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

Back to the top