How do I move elements within a scroll list without a touch screen?
Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
2019-03-14 8:46 AM
I'm new to C++ and I've been reading about the buttoncontroller and keysampler but how do I move on element in the scroll list up or down upon a button pressed event?
Labels:
- Labels:
-
TouchGFX
1 REPLY 1
Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
2019-03-14 10:16 AM
You can use the animateToItem method defined in ScrollBase to manually move to a given item in your list.
virtual void animateToItem(int16_t itemIndex, int16_t animationSteps = -1);
So you can keep track of your current item index and increment/decrement it with your button presses.
