cancel
Showing results for 
Search instead for 
Did you mean: 

How to print a Dot "." in Touchgfx?

kvkhekale
Associate II

I need to take input fractional values from user through UI built via TouchGFX.

There is a separate Dot button on my UI keypad. But, I am not able to print it on the screen.

Please help me for above problem. Just a short clue on what to use will also be sufficient.

Sharing the photo of my keypad here with.

1 ACCEPTED SOLUTION

Accepted Solutions
Martin KJELDSEN
Chief III

Concretely:

  • For the typography you're using you must define a dot ('.') in your wildcard list in the texts tab.
  • Call Unicode::strncpy(myBuffer, ".", 1); to update the buffer and invalidate the textarea.

0690X0000087ZNuQAM.png

View solution in original post

5 REPLIES 5
Martin KJELDSEN
Chief III

You can use Unicode::strncpy() in TouchGFX to copy those kinds of characters into an array of Unicode::UnicodeChar (a wildcard buffer).

Martin KJELDSEN
Chief III

Concretely:

  • For the typography you're using you must define a dot ('.') in your wildcard list in the texts tab.
  • Call Unicode::strncpy(myBuffer, ".", 1); to update the buffer and invalidate the textarea.

0690X0000087ZNuQAM.png

kvkhekale
Associate II

Yeah.. Tried the above methods and now getting proper output!

Thank you very much!!

You're welcome :)