Changing the color of a Rebol button

Posted by Dave Matuszek on Stack Overflow See other posts from Stack Overflow or by Dave Matuszek
Published on 2011-01-04T22:19:30Z Indexed on 2011/01/04 22:53 UTC
Read the original article Hit count: 268

Filed under:
|
|

I want to ask multiple choice questions in Rebol. Possible answers will be on buttons. I want to turn a button red when it is clicked and it is the wrong answer. When the correct button is pressed, I want to proceed to the next question.

I can change the color of a box (mybox/color: red show mybox). I can set up a toggle with two colors (but I can't change it based on the result of an arbitrary test (is the answer correct?).

It seems like there is probably a simple way to change the color of a button, without having to create my own button-like face objects. Isn't there?

© Stack Overflow or respective owner

Related posts about button

Related posts about view