3 Replies Latest reply on Dec 12, 2017 5:51 AM by alanR

    Draw a multi state Rectangle behind button on click event


      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 :