Normal code for menu create every in cont.
Howto add existing for example panels or (squareline components)
I test multiple lv_obj_set_parent(ui_PanelMenu1, cont);
but only first showed
Normal code for menu create every in cont.
Howto add existing for example panels or (squareline components)
I test multiple lv_obj_set_parent(ui_PanelMenu1, cont);
but only first showed
Is it a container?
? i use this
cont = lv_menu_cont_create(sub_1_page);
lv_obj_set_parent(ui_PanelMenu0, cont);
lv_obj_set_parent(ui_PanelMenu1, cont);
lv_obj_set_parent(ui_PanelMenu2, cont);
lv_group_add_obj(g1, ??? );
ui_PanelMenuX is component (combined objects from Squareline)
Repeat only one showed in menu (0 first)
And second how add to group child objects from component ?
it places all object on to of each other (same coordinates). Does it make the others visible?
lv_obj_set_x(ui_PanelMenu1, 100);
lv_obj_set_x(ui_PanelMenu2, 200);
Disagree panel have defined different xy, changing parent i mean dont change this.
Too one is bigger as second and i see only one
Seems created container is only for one child, and set parent dont add one.
I’m pretty sure lv_obj_set_parent
works well.
Please send a more complete code snippet to reproduce the issue.