I'm making a template with side buttons to navigate the SCADA using Ignition Vision I would like, when I press a button on the "X" page, the corresponding button on the "Y" page changes color to signal that it has been pressed.
and also with try/except blocks, but I couldn't get the desired result.
Also, I would like to implement something more dynamic than just a static background change: for example an animation when the button is activated, and that also reacts to the hover over the button.
At the moment I am not using tags to manage button status, but an Open/Swap page action.
Can anyone suggest the correct way to handle this behavior in Vision, possibly with smooth animations on the buttons?
For button styles, add a custom property to the button, bind your criteria, and use custom styles to change the color. Don't don't do it with scripts. I have a global menu system for all main windows. Since only one main window can be viewed at a time, I use a client tag integer that holds the value of the current window, bind that to buttons to highlight based on window open.