How to test and set the checkbox.
What is the command I can use?
My lvgl versio is 8.3.*
You can either use CHECKED/UNCHECKED or VALUE_CHANGED event-triggers in SquareLine Studio and they will be exported with LVGL-equivalents of these names in the export as well. The ‘action’ creates a callback-function for checking/unchecking the checkbox, and the command to check the actual state is lv_obj_has_state( checkbox_object, LV_STATE_CHECKED ).
Thanks, it’s working now.
1 Like