eez-open / studio

Cross-platform low-code GUI and automation
https://www.envox.eu/studio/studio-introduction/
GNU General Public License v3.0
510 stars 90 forks source link

LVGL 9.0 only project - Screens.c - unterminated LV_OBJ_FLAG #337

Closed anvgfr closed 5 months ago

anvgfr commented 6 months ago

With LVGL 9.0 only project

In textarea, i got a lv_obj_add_flag call with a unterminated LV_OBJFLAG when removing "Checkable" option:

           lv_textarea_set_max_length(obj, 50000);
            lv_textarea_set_one_line(obj, false);
            lv_textarea_set_password_mode(obj, false);
            lv_obj_add_flag(obj, LV_OBJ_FLAG_);
            lv_obj_clear_flag(obj, LV_OBJ_FLAG_CLICKABLE|LV_OBJ_FLAG_PRESS_LOCK|LV_OBJ_FLAG_CLICK_FOCUSABLE|LV_OBJ_FLAG_GESTURE_BUBBLE|LV_OBJ_FLAG_SNAPPABLE|LV_OBJ_FLAG_SCROLL_CHAIN);
            lv_obj_add_state(obj, LV_STATE_DISABLED);

but did'nt found how it appears (wasn't able to remove this line and this is not present on other textarea control initialisation.

Current project is in attachment... esp32_pwrsense.zip

mvladic commented 6 months ago

Fixed.

This happens when you remove all the flags for the particular widget, after that you can't correct it unless you remove the widget and add it again.