cancel
Showing results for 
Search instead for 
Did you mean: 

How to use a set of custom containers in a one Scroll List widget?

DZhuk.3
Associate

At first glance scroll List had given a promising way to handle the numereos menu items and seems more convenient for it, than to make a screen for the each one. But instantly raised a question, how to make a scroll list to work with different custom containers (menu items) instead of a templateone? The first tought was to use a container-aggregator ,wich holds all the containers needed, and to handle it in a "scrollListUpdateItem", but all the visible copies of that parental container will hold the full set of children container instances even invisble. So there is a question, how to make a scrollList work with a set of containers? Seems the good idea is to make an array of pointers to instances of needed containers (menu items) but the deep digging in update item callback required. Is there any chance to make it ,except the hard way ?

1 REPLY 1
Yoann KLEIN
ST Employee

Hello @DZhuk.3​ ,

I don't really understand what is the use of populating the ScrollList with different type of Custom Containers. If you want to create an interface which allows the user to access different menus from a click on an icon from your ScrollList elements, you could recommend you to take a look at the "Scroll List and Wheel Example" available in TouchGFXDesigner.

Then, in your code, you could specify different actions based on which element of the list was selected.

/Yoann

Yoann KLEIN
ST Software Developer | TouchGFX