How to do a page down/up with a list
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2024-11-30 8:27 AM - last edited on ‎2024-12-02 3:47 AM by mƎALLEm
I have this ui requirement
The idea is that when the user presses the "down" button, the effect will be to go all the way down, or all the way up.
I'm using a scrollable container with a list layout to create the view, how can I do it?
- Labels:
-
TouchGFX
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2024-12-02 2:37 AM
Hello @JPabl.1 ,
The ScrollableContainer have a method "doScroll" :
https://support.touchgfx.com/docs/api/classes/classtouchgfx_1_1_scrollable_container
This seems to be what you are looking for.
However, I assume it will be a bit painful to use as you will need to know how many pixels you need to scroll.
This issue could be avoided by using another widget such as the ones inheriting for the scrollBase (scrollList and scrollWheel) : : https://support.touchgfx.com/docs/api/classes/classtouchgfx_1_1_scroll_list
It has a method animateToItem where you just have to specify the last item if you want to scroll to the end and the first item if you want to scroll to the beginning :
Regards,
Software engineer at ST (TouchGFX)
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2024-12-10 6:04 AM
Hello @JPabl.1 ,
Have you been able to move forward on your issue?
Regards,
Software engineer at ST (TouchGFX)
