What do you want to achieve?
Obtain the value (text string) in a Function of the TextArea that the Keyboard populates
What have you tried so far?
Tried several things, but this just produces an empty string. scrAnimationStartTimeEntry2 is the name of the TextArea widget that’s receiving the characters from the keyboard.
const char * txt = lv_textarea_get_text(“scrAnimationStartTimeEntry2”);
also tried const char * txt = lv_textarea_get_label(“scrAnimationStartTimeEntry2”);
Others
-
SquareLine Studio version: 1.1.1
-
Operating system: Windows 11
-
Target hardware: WT32-SC01
lv_textarea_get_text takes the text area object not the name of it as a string.
You need:
const char * txt = lv_textarea_get_text(scrAnimationStartTimeEntry2);
Andy
Thank you! That got me on the right track. I was thrown off because I was getting build errors without putting the TextArea name in quotes. Turns out that I needed to preceed the TextArea name with “ui_”. Once I removed the quotes, like in your example above, and added “ui_” preceeding the name, it works fine now. Thank you.
const char * txt = lv_textarea_get_text(ui_scrAnimationStartTimeEntry2);
Mike
Good news 
It is worth pointing out that SLS appends ui_
to all your controls.
Andy