How to Enter and Display Data from Keyboard in GUI Guider?

取消
显示结果 
显示  仅  | 搜索替代 
您的意思是: 

How to Enter and Display Data from Keyboard in GUI Guider?

429 次查看
nithin3200
Contributor III

Hi,

I am working on a GUI Guider project where I need to allow users to enter their name and ID number using a keyboard. Could someone guide me on how to achieve this functionality? Specifically, I need to know:

  1. How to capture keyboard input for text fields.
  2. How to display the entered data on the GUI.
  3. Any particular digits or configurations I need to be aware of for handling numeric IDs.

Any example code or references to documentation would be greatly appreciated.

Thanks!

标签 (2)
0 项奖励
回复
3 回复数

347 次查看
aswani
Contributor I

Hello  nithin3200,

As for my knowledge you can follow these steps

  1. Capture Keyboard Input
  2. Display Entered Data
  3. Handle Numeric IDs

Hope this will help you

Developer
0 项奖励
回复

410 次查看
EdwinHz
NXP TechSupport
NXP TechSupport

Hi @nithin3200,

This would have to be done with custom code. LVGL documentation has a section for input devices, including keyboards. Please follow section "keypad or keyboard" of the following page for more information on how to manipulate widgets using a keyboard: Input device interface — LVGL documentation.

Then, the label would have to be changed according to the key pressed, with "lv_label_set_text()", more info here Label (lv_label) — LVGL documentation.

You can also look into the example codes provided by LVGL documentation to see how to implement a function like this: Examples — LVGL documentation.

BR,
Edwin.

0 项奖励
回复

351 次查看
nithin3200
Contributor III

HI Edwin,

Thank you for the detailed guidance. I'll review the LVGL documentation sections you referenced and try to implement a custom solution using keyboard input to update the label. The example codes will also be helpful.

I appreciate your support. I'll let you know if I have any other questions.