Skip to main content
ikassma
Associate III
April 2, 2019
Solved

how to connect keyboard buffer and Textarea Wildcard buffer?

  • April 2, 2019
  • 7 replies
  • 1613 views

hi.

I implemented the numeric custom Keyboard through the Keyboard example.

However, I can not connect the buffer used for input with the buffer used for TextArea. How can I connect?

And I want to be able to input it directly to the keyboard when I touch the TextArea. Can I detect the touch of the TextArea?

thank you

This topic has been closed for replies.
Best answer by Martin KJELDSEN

Hi @ikassma​,

Yes you need to know the wildcard buffer from the beginning (During initialzation of your View you can simply initialize the keyboard with this buffer, or have the keyboard know the buffer itself).

We are actually developing a more complete keyboard widget, not just an example, so if you could specify what you're looking for in such a widget that may be input to the development.

Do you mean you want to clear the input field?

7 replies

Martin KJELDSEN
Principal III
April 3, 2019

Hi @ikassma​,

Please check out this post - It discusses how to print print something to a wildcard buffer using Unicode::strncpy(). To connect a keyboard to a textarea you'd maybe return a char from your keyboard depending on what is being pressed and then you can pass that directly to strncpy. (Special keys are another matter: e.g. delete a char from the current wildcard buffer).

https://community.st.com/s/question/0D50X0000AROgoVSQT/how-to-print-a-dot-in-touchgfx

ikassma
ikassmaAuthor
Associate III
April 4, 2019

hi. @Martin KJELDSEN​ 

I am always grateful for your reply to my article

Do I need to know the location of the wildcard buffer from the beginning even if I use Unicode :: strncpy () ???

How should that be treated ??? The keyboard example looks perfect, but it is not perfect for application.

One problem I am having right now is to clear the currently generated keyboard from the screen using the callback function on the keyboard.

Martin KJELDSEN
Martin KJELDSENBest answer
Principal III
April 4, 2019

Hi @ikassma​,

Yes you need to know the wildcard buffer from the beginning (During initialzation of your View you can simply initialize the keyboard with this buffer, or have the keyboard know the buffer itself).

We are actually developing a more complete keyboard widget, not just an example, so if you could specify what you're looking for in such a widget that may be input to the development.

Do you mean you want to clear the input field?