2024-06-27 04:34 AM
Hi,
I have a scroll list with 6 items, and i want to use the selected item to change to another screen when pressed.
Is it possible? I have not seen anything on the designer to do that.
Thanks
2024-06-27 04:47 AM - edited 2024-06-27 04:47 AM
Hello @ab73 and welcome to the community!
You can do that by creating a custom container and including it in one of the scrollable elements sur a list ScrollList, ScrollWheel or SwipeContainer for instance.
Than, create an interaction for each button to trigger an interaction that will change to the screen you want.
This is done in a lot of our demos :
To learn more about TouchGFX and how to create a GUI, have a look at our documentation :
If this comment answers your question, I invite you to select this comment as "best answer".
Regards,
2024-06-27 04:59 AM
Thanks for your prompt reply.
In a swipe container you can add buttons to every page you create and that's fine, in a scroll container I have not found that feature.
I did a custom container with an image as a template and selected '6' in 'Number of items' option.
This create the scroll list with the images i want, but I can't find the feature to make them clickable as in the swipe container.
2024-06-27 05:59 AM - edited 2024-06-27 05:59 AM
Simply add a button to the container you created.
You can add a regular button, but if you want to make the image clickable, I invite you to watch our latest video which talks about this specific design feature : Make area clickable
But the simplest way is probably to follow this tutorial where the presenter shows how to use the callback generated when an item is selected to change an image (in your case you want to change the screen so it is the same process) : youtube.com/ScrollListExample
Regards,
2024-09-02 02:27 AM
Hello @ab73 ,
Have you been able to solve your problem?
If so, I invite you to select the most helpful comment as "best answer".
Regards,