I have a row list and when I press the right button (keep pressing) it starts scrolling continuously. How can I catch the event? I need to start a timer when it starts to scroll and need to stop it when the button is released.
I looked into this briefly recently and didn't see any events fired until the scrolling stops. I didn't spend much time on it because I didn't really need it at the time. If you find out something, or if anyone else knows, it may be helpful to know for the future.
Currently, what I did was, there is a field in the row list "SrollingStatus". This field is set to true when we press the key and false when we release the key.
I observed this field and whenever it is set to true and false my callback function will call. So, inside the callback function, if we press the key and not releasing the state would be true. At that time, we can start a timer, and, in the meantime, the field is not set to false (key release will set the field to false), we can assume this is a continuous key press(scrolling).
This is the only solution I got as of now. Please correct me if I am wrong. Thank You.
That looks good! Thanks for sharing.