Can shapes have a changeable style? If yes, how to change?
Posted: Thu Jul 11, 2019 12:14 pm
Hello,
I try to bind a style, created in the StyleManager, to a shape via the onclick event (change the background color). For this I tried SetStyle and ToggleStyle. But it has no effects. The shape does not change the style.
Is it possible that ToogleStyle or SetStyle cannot be used for shapes? I want the shape to change the background color (red/blue) with every click.
Thank you very much for pointing me to a solution.
Kind Regards,
Markus
I try to bind a style, created in the StyleManager, to a shape via the onclick event (change the background color). For this I tried SetStyle and ToggleStyle. But it has no effects. The shape does not change the style.
Is it possible that ToogleStyle or SetStyle cannot be used for shapes? I want the shape to change the background color (red/blue) with every click.
Thank you very much for pointing me to a solution.
Kind Regards,
Markus