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
Can shapes have a changeable style? If yes, how to change?
Forum rules
IMPORTANT NOTE!!
DO YOU HAVE A QUESTION OR PROBLEM AND WANT QUICK HELP?
THEN PLEASE SHARE A "DEMO" PROJECT.
PLEASE READ THE FORUM RULES BEFORE YOU POST:
http://www.wysiwygwebbuilder.com/forum/viewtopic.php?f=12&t=1901
MUST READ:
http://www.wysiwygwebbuilder.com/getting_started.html
WYSIWYG Web Builder FAQ
IMPORTANT NOTE!!
DO YOU HAVE A QUESTION OR PROBLEM AND WANT QUICK HELP?
THEN PLEASE SHARE A "DEMO" PROJECT.
PLEASE READ THE FORUM RULES BEFORE YOU POST:
http://www.wysiwygwebbuilder.com/forum/viewtopic.php?f=12&t=1901
MUST READ:
http://www.wysiwygwebbuilder.com/getting_started.html
WYSIWYG Web Builder FAQ
Re: Can shapes have a changeable style? If yes, how to change?
By default, a shape is an image so you cannot change the style of that.
If you use events then the style will be applied to the shape's container.
If you use events then the style will be applied to the shape's container.