cancel
Showing results for 
Search instead for 
Did you mean: 

add left right button to a scroll list

rzapp
Associate II

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

1 REPLY 1
Martin KJELDSEN
Chief III

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