We would like to create a customized button in our HMI-display to make our graphics look nicer. We have therefore made a frame which is supposed to be a button. Inside this frame, we have declared a local variable which hides one of two rectangles. This bool is e.g. activated on mouse down, and deactivated on mouse up. This works fine. However, when I add this frame to one of our displays, and adds more input configurations to this frame, e.g. execute ST-Code, then the “internal” input configurations stop working. Anyone have any ideas on how to get around this?
This is interesting.
what version of codesys / e!Cockpit are you using ?
We are using Codesys 3.5 SP18 Patch 2.
This visu function definitely works, can you please post screenshots of how you have the visualization setup?
Hi Kurt.
The variable Hover is declared locally inside the frame (VAR). It is a bool. Here is a picture depcting how hover is turned on and off. Hover decides wether a rectangle around the button should be shown or not.
This works fine, when the frame is placed in a visualization. However, if a command is assigned to e.g. OnMouseUp on the frame in the visualization, hover does not work anymore.
Yes, I think the frame will overwrite the visu.
What you can do is use INPUT / INOUT variable of the visu so everything is done in the visu and not by the frame itself.