I have Scroll in a container, I can scroll vertically without any problem but I can’t activate the SCROLLBAR, I don’t know if I’m missing something or if it’s out of range? Or hidden?
This is my code:
ui_ContainerBasic = lv_obj_create(ui_BasicModeContainer);
lv_obj_remove_style_all(ui_ContainerBasic);
lv_obj_set_width( ui_ContainerBasic, 475);
lv_obj_set_height( ui_ContainerBasic, 393);
lv_obj_set_x( ui_ContainerBasic, 0 );
lv_obj_set_y( ui_ContainerBasic, 46 );
lv_obj_set_align( ui_ContainerBasic, LV_ALIGN_CENTER );
lv_obj_set_flex_flow(ui_ContainerBasic,LV_FLEX_FLOW_COLUMN);
lv_obj_set_flex_align(ui_ContainerBasic, LV_FLEX_ALIGN_START, LV_FLEX_ALIGN_START, LV_FLEX_ALIGN_START);
lv_obj_add_flag( ui_ContainerBasic, LV_OBJ_FLAG_SCROLL_ON_FOCUS | LV_OBJ_FLAG_SCROLL_WITH_ARROW | LV_OBJ_FLAG_SCROLL_ONE ); /// Flags
lv_obj_set_scrollbar_mode(ui_ContainerBasic, LV_SCROLLBAR_MODE_ON);
lv_obj_set_scroll_dir(ui_ContainerBasic, LV_DIR_VER);
lv_obj_set_scroll_snap_x(ui_ContainerBasic, LV_SCROLL_SNAP_START);
lv_obj_set_scroll_snap_y(ui_ContainerBasic, LV_SCROLL_SNAP_START);
Thanks,
Victor.