unleashed-firmware/applications/examples/example_number_input
あく f353e5708d
Gui: change dialog_ex text ownership model (#3831)
* Gui: change dialog_ex text ownership model
* Gui: change text ownership model part 2
* Examples: fix DialogEx usage in number input
* Gui: fix nullptr dereference in DialogEx, proper reset procedure

Co-authored-by: hedger <hedger@users.noreply.github.com>
2024-09-05 14:32:48 +01:00
..
scenes Gui: change dialog_ex text ownership model (#3831) 2024-09-05 14:32:48 +01:00
application.fam Added a text input that only accepts full numbers (int) (#3350) 2024-08-08 15:05:48 +09:00
example_number_input.c Added a text input that only accepts full numbers (int) (#3350) 2024-08-08 15:05:48 +09:00
example_number_input.h Added a text input that only accepts full numbers (int) (#3350) 2024-08-08 15:05:48 +09:00
example_number_input_10px.png Added a text input that only accepts full numbers (int) (#3350) 2024-08-08 15:05:48 +09:00
ReadMe.md Added a text input that only accepts full numbers (int) (#3350) 2024-08-08 15:05:48 +09:00

Number Input

Simple keyboard that limits user inputs to a full number (integer). Useful to enforce correct entries without the need of intense validations after a user input.

Definition of min/max values is required. Numbers are of type int32_t. If negative numbers are allowed withing min - max, an additional button is displayed to switch the sign between + and -.

It is also possible to define a header text, shown in this example app with the 3 different input options.