Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Closed
anvgfr opened this issue Apr 9, 2024 · 1 comment
Closed

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

anvgfr opened this issue Apr 9, 2024 · 1 comment
Assignees
Milestone

Comments

@anvgfr
Copy link

anvgfr commented Apr 9, 2024

With LVGL 9.0 only project

In textarea, i got a lv_obj_add_flag call with a unterminated LV_OBJ_FLAG_ 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 mvladic self-assigned this Apr 10, 2024
@mvladic mvladic added this to the M19 milestone Apr 10, 2024
mvladic added a commit that referenced this issue Apr 10, 2024
@mvladic
Copy link
Contributor

mvladic commented Apr 10, 2024

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants