Skip to main content
BjornLindholm
Associate II
July 30, 2024
Solved

Updating text list

  • July 30, 2024
  • 1 reply
  • 1907 views

Hello,

I want to create a updating list for my project that adds new text to an area on the screen(preferably scrollable as there can be many texts). I have read around a lot but I cant seem to figure out how to add new text areas with wildcards to a container. I also want to be able to change the different texts and remove them during runtime. What is the best way to solve this problem?

Please see attached image for a very rudimentary chart off how I want the UI to look.

Regards,

Björn

Best answer by Mohammad MORADI ESFAHANIASL

Hello @BjornLindholm ,

I have previously made a simple project similar to what you are looking for, and I will share it here so you can draw inspiration from it. 
The difference is that the new items are added to the bottom of the list, however, the list automatically scrolls down to show the new item. 
Keep in mind that you need to place your texts in a custom container to be able to add them dynamically to your scrollable container, and be aware of the memory management due to using new() function in C++.

Good luck,

1 reply

ST Employee
July 31, 2024

Hello @BjornLindholm ,

I have previously made a simple project similar to what you are looking for, and I will share it here so you can draw inspiration from it. 
The difference is that the new items are added to the bottom of the list, however, the list automatically scrolls down to show the new item. 
Keep in mind that you need to place your texts in a custom container to be able to add them dynamically to your scrollable container, and be aware of the memory management due to using new() function in C++.

Good luck,

BjornLindholm
Associate II
July 31, 2024

Hello @Mohammad MORADI ESFAHANIASL ,

I have trouble opening the project i get an error (see attached image). Any tips on how to get it working?

Screenshot 2024-07-31 124351.png

ST Employee
July 31, 2024

Is it possible for you to use or switch to TouchGFX 4.24.0?