Skip to main content
JPan.4
Associate II
January 27, 2023
Question

TextArea with wildcard copy issue on the new TouchGFX Designer 4.21.1

  • January 27, 2023
  • 1 reply
  • 817 views

Hello,

I came to this issue, when I copied a TextArea (with one wildcard) from screen A to screen B. After code generation there is no corresponding c++ code for touchgfx::TypedText(...) generated.

The error report is:

error: 'T___SINGLEUSE_2HH2' was not declared in this scope; did you mean 'T___SINGLEUSE_TO32'?
 117 | Unicode::snprintf(FenceNum_FrontBuffer, FENCENUM_FRONT_SIZE, "%s", touchgfx::TypedText(T___SINGLEUSE_2HH2).getText());
 | ^~~~~~~~~~~~~~~~~~
 | T___SINGLEUSE_TO32

If I just create new textArea on screen B, there is no such problem.

If I reopen the Designer project, I will find, the wildcard ID is missing. I need to create wildcard ID again. Then recompile the project, there is no error again.

PS: I didn't copy the TextArea in the same screen.

This topic has been closed for replies.

1 reply

Yoann KLEIN
ST Employee
January 30, 2023

Hello @JPan.4​,

I just tried it and I don't have any issue with wildcards.

Could you share your project please ?

/Yoann

Yoann KLEINST Software Developer | TouchGFX