sean-barton - 2022-09-29

Codesys 3.5.16.0

I have a scroll bar in my visualization which shows a change of colour when either of the arrows at the ends of the scroll bar are touched or the center slider button is touched. I would like to access these touch events. It does not appear the functionality is available in the scroll bar properties so I am trying to access these events in structured text.

Is there a simple way to do this? I have tried a method of obtaining the element from the element list of a named dialogue knowing the element ID, and grabbing the mouse clicks directly from the object's member variables (I hate doing this) and this works; however, when the scroll bar is a sub-element in a referenced visualization things get really messy.

 

Last edit: sean-barton 2022-09-30