There are some attributes which can be enabled/disabled by lv_obj_add/remove_flag(obj, LV_OBJ_FLAG_...) and lv_obj_set_flag(obj, LV_OBJ_FLAG_..., true/false)
LV_OBJ_FLAG_HIDDEN Make the object hidden. (Like it wasn’t there at all)
Blockquote
But it doesn’t seems to be working…
Is someone can help??
Thank you for your time and your help
Based on your ui_ seems you use Squareline. Here you can set hidden flag by click. And Syntax for cmds is based on versions lvgl 7 differ to 8 and now 9 is unsuported in SQS.
You dont show error for right syntx8 lv_obj_add_flag(
Hi Marian, Yes, I’m using Squareline (fantastic program)…
Yes, no error on lv_obj_add_flag( but it doesn’t compile with : lv_obj_set_flag(ui_CmpON,LV_OBJ_FLAG_HIDDEN,true);
I will try the solution of @TridentTD and let you know.
Thank you for your help.