I’m making a trivia in an Air application, a question, three buttons, after you choose one, the right button gets coloured green, the wrong ones get coloured red. I was trying to do this changing the styles, so I created a Button.Right and a Button.Wrong style, but I also need to disable the buttons so they don’t get clicked more than once while I’m showing the correct answers.
So I’m having trouble making it so the buttons don’t look greyish and with the alpha turned down when I set their enabled property to false.
I’m trying to be as minimalistic as possible here, changing disabled-overlay-alpha or disabledOverlayAlpha in the css file doesn’t seem to do the trick, neither does changing disabledBorderColor
any fast tricks to do this?
This might be a somewhat dirty workaround, but you could try disabling the buttons by setting their
mouseEnabledproperty tofalseto forbid them from interacting with the mouse.