Skip to main content



      Home
Home » Newcomers » Newcomers » button.setEnabled(false) - how to control the button image?
button.setEnabled(false) - how to control the button image? [message #47317] Tue, 05 April 2005 04:35 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 #47895 is a reply to message #47317] Wed, 06 April 2005 06:49 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: arstrube.web.de

i'm no expert on this but couldn't it be that the button takes another image
when disabled? Then you would need to supply that image as well.

Arnd


"Patrick Kaegi" <patrick.kaegi@netcetera.ch> wrote in message
news:e91ee57a0da49c66d312ce0073015009$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 #48014 is a reply to message #47895] Wed, 06 April 2005 08:19 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: arstrube.web.de

Actually, only toolbar buttons get different images for the disabled and the
'hot' state. With ordinary buttons, the behavior you noticed seems to be
intended. A workaround in your case would be to make a toolbar and use a
ToolItem instead of a button, with all 3 images supplied.

Arnd

"Arnd" <arstrube@web.de> wrote in message
news:d30f7g$4ni$1@news.eclipse.org...
> i'm no expert on this but couldn't it be that the button takes another
image
> when disabled? Then you would need to supply that image as well.
>
> Arnd
>
>
> "Patrick Kaegi" <patrick.kaegi@netcetera.ch> wrote in message
> news:e91ee57a0da49c66d312ce0073015009$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 #52314 is a reply to message #48014] Fri, 15 April 2005 05:39 Go to previous message
Eclipse UserFriend
Originally posted by: patrick.kaegi.netcetera.ch

thanks a lot for your answer arnd!

hope this would be possible in further versions!

greetz
patrick
Previous Topic:how to dynamically change the layout by pressing a button
Next Topic:Problems with new eclipse installation
Goto Forum:
  


Current Time: Thu May 08 07:18:26 EDT 2025

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

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

Back to the top