Skip to main content
FMuel.3
Associate
March 3, 2023
Question

How to change the scroll direction of a scroll wheel?

  • March 3, 2023
  • 1 reply
  • 742 views

Hi all,

I'd like to use a scrollwheel container in touchgfx with a vertical scroll direction. The scroll wheels works fine from 0-10, but Number 0 is on top and the number 10 is below (have to scroll down. For our application we need it the opposite way:

Start with number 0, but the numer 10 is above. So the user needs to scroll up, to get to number 1-10.

Is this possible with just setting a mark somewhere?

If not, it sure isn't to difficult to programm, but it would be way easier that way, because the getSelectedItem() would have the same number as the shown number this way and no calculation is needed.

Thanks for your answer.

This topic has been closed for replies.

1 reply

Osman SOYKURT
ST Technical Moderator
March 3, 2023

Hello FMuel.3,

I don't think it's possible for the moment to change the direction of your wheel but thanks for the idea it's something we can consider to add in future.

For the moment, you can create your own functions to return the value you want like :

int16_t MainView::realGetSelectedItem()
{
 return scrollWheel.getNumberOfItems()- scrollWheel.getSelectedItem();
}

/Osman

ST Software Developer | TouchGFX