revert(example) remove test codes

This commit is contained in:
Gabor Kiss-Vamosi
2021-05-20 12:08:24 +02:00
parent 1386edf2fb
commit 6c013fe158
5 changed files with 3 additions and 11 deletions

View File

@@ -21,10 +21,8 @@ static void btnm_event_handler(lv_event_t * e)
void lv_example_textarea_1(void)
{
// lv_obj_set_style_base_dir(lv_scr_act(), LV_BASE_DIR_RTL, 0);
lv_obj_t * ta = lv_textarea_create(lv_scr_act());
// lv_textarea_set_one_line(ta, true);
lv_textarea_set_text(ta, "Hey");
lv_textarea_set_one_line(ta, true);
lv_obj_align(ta, LV_ALIGN_TOP_MID, 0, 10);
lv_obj_add_event_cb(ta, textarea_event_handler, LV_EVENT_READY, ta);
lv_obj_add_state(ta, LV_STATE_FOCUSED); /*To be sure the cursor is visible*/

View File

@@ -7,7 +7,6 @@ static lv_obj_t * kb;
void lv_example_textarea_2(void)
{
lv_obj_set_style_base_dir(lv_scr_act(), LV_BASE_DIR_RTL, 0);
/*Create the password box*/
lv_obj_t * pwd_ta = lv_textarea_create(lv_scr_act());
lv_textarea_set_text(pwd_ta, "");