Author Topic: How to notice when a guiscrollctrl has been scrolled  (Read 955 times)

What function is called when a guiScrollCtrl is scrolled?
Nothing shows up in trace and .dump doesn't give results either

Can someone help me?

Hm, I'm not sure if there's something for that. I don't have a whole lot of experience with GUI's but I'd suggest to make a looping schedule timer that compares the last position of the scroll box to the current position.

Hm, I'm not sure if there's something for that. I don't have a whole lot of experience with GUI's but I'd suggest to make a looping schedule timer that compares the last position of the scroll box to the current position.
That is what I'm using right now, I wonder whether there is a more efficient way?

If I wasn't sick as forget I'd do some testing for you but it sounds like there is no callback for it. In this case use the loop, but remember to deactivate it when the GUI closes and activate it when it opens. Better yet, when the scroll control opens and closes.

Couldn't you use a MouseEventCtrl?

Couldn't you use a MouseEventCtrl?
You could, but it would pretty much do the same thing as a schedule.