Button With Error Indication

Hello;

When I press a button I want that it becames red, if the action it’s not possible ( the error information will be send to Screen maker using a do_error)

Is possible?

Best Regards:

JosAc gonA?alves

Hello,

If i understand correctly, color of the button should change based on the state of the signal.
1.Button Control has a AllowMutipleStates property.
Set the property to true and select the property (ex: BackColor) by clicking on the checkbox.
2.Bind the signal to SelectedStateValue property.
3.Define States of the Signal using States property. For example:
if 0 define color (blue)
if 1 define color(red)
So when the state of signal is 0 the backcolor of button changes to blue and when 1 changes to red.

Hello;

Yes is more or less that.

But the idea it was only change to red color, when the button is pressed (if the digital imput is 1)

BR:

JosAc

Hello,

You can try the steps mentioned in the earlier post.

Thanks