cancel
Showing results for 
Search instead for 
Did you mean: 

Adding text while working

EEuge
Senior

Hello!

I work with textArea.

I want to add new text while program working. For example - I get array of filenames and I want to put filenames to screen (and later select one of them by touching).

How can I do this? How to create new textArea while program is working?

5 REPLIES 5
Romain DIELEMAN
ST Employee

Hi, I am unsure I understand what you wish to do. If you just wish to have a textArea that pops up while running for any reason (like a button clicked or a value reached) the easiest solution would be to add a textArea widget in Designer and set its alpha at 0 (or uncheck the Visible option) so that it will be invisible on screen. Then modify its alpha value to 255 (or set as Visible) in your code when you wish the textArea to appear.

Hope this helps but if this is not what you were looking for, please add some more context and code/pictures so that we can have a better insight of your issue.

/Romain

Thanks!

May be, textarea is not that I need...

I​ want make SDcard directory browser. I want to make list of files, and name of each file must be selectable.

I don't know, how much files will be found - for example, it will be 1000. CRreation of 1000 invisible textarea or othe widgets -is not good idea.

Please, advise me good way to make file browser with touchgfx.​

I suggest you have a look at the Scroll Wheel and Scroll List widgets, they might be a solution to what you are looking for. There are several UI templates available on Designer when creating a new project that use those widgets like the List Layout Example or the Scroll Wheel and List Example.

Thanks, I will look.

Tell me have these widgets possibility to change count of elements while program working? not only in designer...

Korry
Associate III

Hi

​These widgets can change count of elements while program working. Or in other words, basically all widgets can be added by code.