Skip to main content
rzapp
Associate II
June 12, 2020
Question

add left right button to a scroll list

  • June 12, 2020
  • 1 reply
  • 835 views

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

This topic has been closed for replies.

1 reply

Martin KJELDSEN
Principal III
June 15, 2020

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