AnsweredAssumed Answered

Draw a multi state Rectangle behind button on click event

Question asked by alanR on Dec 10, 2017
Latest reply on Dec 12, 2017 by alanR

Hi ,


How can i go about creating a multistate rectangle behind a button when the button is clicked. I would like to do this programatically. What happens is once  a user clicks on a button , a rectangle appears behind the button showing the colour of a certain certain state in a mutlistate. And once the button is clicked again the rectangle disappears. Click the button again the rectangle reappears....


My code to create a rectangle :