Text & number edit use the same custom widget

This commit is contained in:
Raphael Coeffic
2022-06-11 15:13:11 +02:00
committed by Raphael Coeffic
parent 574d008b67
commit aca9bf420a
8 changed files with 170 additions and 28 deletions
+5 -2
View File
@@ -19,7 +19,10 @@
#include "textedit.h"
#include "font.h"
#include "libopenui_config.h"
#include "widgets/field_edit.h"
// #include "libopenui_config.h"
#if !defined(STR_EDIT)
#define STR_EDIT "Edit"
@@ -45,7 +48,7 @@ TextEdit::TextEdit(Window *parent, const rect_t &rect, char *value,
uint8_t length, LcdFlags windowFlags,
const char *_extra_chars) :
FormField(parent, rect, windowFlags, 0,
lv_textarea_create),
field_edit_create),
value(value),
length(length)
{