lv_group_set_editing(lv_obj_get_group(kb), kb);//str_buff=lv_textarea_get_text(target);/...
lv_group_focus_obj(my_group, my_button); ``` 还可以通过`lv_group_set_editing()`函数设置组的编辑模式,即在组中进行操作时,是否启用编辑模式。 3.组的事件处理 在LVGL中,"组"是一个事件分发机制的集合,当触发某个事件时,组会将该事件传递给组内所有对象进行处理。例如,当用户点击一个按钮时,按钮会...
lv_obj_remove_flag(kb, LV_OBJ_FLAG_HIDDEN); lv_group_focus_obj(kb); lv_group_set_editing(lv_obj_get_group(kb), kb); lv_group_set_editing(lv_obj_get_group(kb), kb != NULL); lv_obj_set_height(tv, LV_VER_RES / 2); lv_obj_align(kb, LV_ALIGN_BOTTOM_MID, 0, 0); } ...
*/voidlv_example_led_1(void){/*Create a LED and switch it OFF*/lv_obj_t*led1=lv_led_create(lv_scr_act());lv_obj_align(led1,LV_ALIGN_CENTER,-80,0);lv_led_off(led1);/*Copy the previous LED and set a brightness*/lv_obj_t*led2=lv_led_create(lv_scr_act());lv_obj_alig...
lv_span_set_text_static lv_span_stack_deinit @@ -119,6 +123,8 @@ lv_spangroup_get_max_line_height lv_spangroup_get_max_lines lv_spangroup_get_mode lv_spangroup_get_overflow lv_spangroup_get_span_by_point lv_spangroup_get_span_coords lv_spangroup_get_span_count lv_spangroup_n...
lv_group_set_editing(lv_obj_get_group(kb), kb);//str_buff=lv_textarea_get_text(target);/...
Embedded graphics library to create beautiful UIs for any MCU, MPU and display type. - lvgl/src/lv_widgets/lv_list.c at 7af64df008c5abe4ef88ec766241052b9fe66b1d · lvgl/lvgl
key = LV_KEY_ENTER; } else { ... Sorry, something went wrong. Collaborator faxe1008 commented May 31, 2024 Even when you longpress the button, it won't go into editing mode. It will set the group in/out of editing mode here and here, but both only when data->key == LV_KEY...
[Discussion](https://forum.lvgl.io/t/lv-group-tabindex/2927/3). Reconsider focusing logic. Allow having no widget selected (on web it's possible). Keep editing state in lv_obj_t (See [here](#3646)). Support slider left knob focusing (see [here](#3246)) - lv_mem_alloc_aligned(...
case LV_EVENT_CANCEL: ui_menu_delete(); ui_main_show(); break; default: break; } } void ui_menu_delete() { lv_group_set_editing(group, false); lv_group_remove_obj(menu_param_label); lv_group_remove_obj(menu_conf_label); lv_group_remove_obj(menu_maintain_label); lv_obj_del(...