Can shapes have a changeable style? If yes, how to change?

All WYSIWYG Web Builder support issues that are not covered in the forums below.
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
Post Reply
User avatar
Markus
 
 
Posts: 113
Joined: Fri Nov 23, 2018 1:06 pm
Location: Germanskow

Can shapes have a changeable style? If yes, how to change?

Post by Markus »

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
User avatar
Pablo
 
Posts: 23458
Joined: Sun Mar 28, 2004 12:00 pm
Location: Europe
Contact:

Re: Can shapes have a changeable style? If yes, how to change?

Post by Pablo »

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.
Post Reply