Change button text (label) on the list item

I am using TFT simulator in MS Visual Studio 2017.

My code snippet is as follows:

/* Add buttons to the list */
list3_btn = lv_list_add_btn(list3, LV_SYMBOL_EDIT, strTimers);
lv_obj_set_event_cb(list3_btn, event_handler);

I have created multiple lists and need to change their labels if user decides to change language.

Is there a way to change the label (strTimers) at run-time?

Something like lv_list_set_btn_text?

This should work:

lv_label_set_text(lv_list_get_btn_label(list_btn), "New text");
1 Like

wow, it works, thanx