cancel
Showing results for 
Search instead for 
Did you mean: 

How to change the scroll direction of a scroll wheel?

FMuel.3
Associate II

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.

1 REPLY 1
Osman SOYKURT
ST Employee

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

Osman SOYKURT
ST Software Developer | TouchGFX