To change the color of a button when disabled

I want that, whenever any button on my screen is disabled, the color of the button changes.
I can do that manually at each point where I disable the button, but is there a shorter way to do so?
Also, I would like to change their color once more when it is enabled

You could write a common procedure to disable a given button component, and have it use the Any Button blocks to both disable that button and change its color.

Every place you were going to directly disable a button, instead call the new disabler procedure and pass it the component block for the button in question.

2 Likes

Thanks for the solution.

This topic was automatically closed 7 days after the last reply. New replies are no longer allowed.