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

Problems using LV_OBJ_FLAG_SCROLL_ON_FOCUS #6153

Open
36221768 opened this issue Apr 29, 2024 · 2 comments
Open

Problems using LV_OBJ_FLAG_SCROLL_ON_FOCUS #6153

36221768 opened this issue Apr 29, 2024 · 2 comments
Labels

Comments

@36221768
Copy link

Introduce the problem

problems using LV_OBJ_FLAG_SCROLL_ON_FOCUS, I'm trying to auto-scroll objects, but the flag doesn't seem to work: // Create a text area for logging
ui_text_area = lv_textarea_create(ui_pnlMain);
lv_obj_set_x(ui_text_area, 0);
lv_obj_set_y(ui_text_area, lv_pct(15));
lv_obj_set_width(ui_text_area, lv_pct(100));
lv_obj_set_height(ui_text_area, lv_pct(75));
lv_obj_set_align(ui_text_area, LV_ALIGN_TOP_LEFT);
// make object unclickable by input devices
lv_obj_clear_flag(ui_text_area, LV_OBJ_FLAG_CLICKABLE);
//
lv_obj_add_flag(ui_text_area, LV_OBJ_FLAG_SCROLLABLE);
lv_obj_add_flag(ui_text_area, LV_OBJ_FLAG_SCROLL_ON_FOCUS);

Proposal

No response

@kisvegabor
Copy link
Member

Hi,

Exactly what is not working? Do you add the text area in a scrollable widget and click it or focus it in a group?

@lvgl-bot
Copy link

We need some feedback on this issue.

Now we mark this as "stale" because there was no activity here for 14 days.

Remove the "stale" label or comment else this will be closed in 7 days.

@lvgl-bot lvgl-bot added the stale label May 17, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

3 participants