2020-06-12 06:12 AM
Hi
I'm trying to add a left and a right button to a scroll list. so the user can either scroll it, or change it with a button.
I checked the ScrollList class and I could not found a function that helps me.
Do somebody know how I can do it?
Touchgfx 4.12.3
2020-06-15 02:20 AM
First, i suggest you upgrade to 4.13.0 if you have the option to do that.
Second, you can add your own buttons just fine and then interact with the scroll list programatically. Try:
void ScrollWheelBase::animateToPosition(int32_t position, int16_t steps)
Steps is the number of "ticks" the move should take, which impacts the speed of the animation.
/Martin