Callback on entering/exitting edit mode


Hello, while using encoder, is there a way to set up a callback on a group or something like that when user enters or exits edit mode? There are functions to set callbacks for focusing, edge, also functions to manually change edit mode, but not for this, as far as I can see

What LVGL version are you using?


What do you want to achieve?

Get some code called when “edit” mode is entered and/or exited

I don’t really understand what you mean, but if you want to process the code while the screen is being uploaded or something like that, do so.

static void event_screenload_menu(lv_event_t *e) {

	lv_event_code_t event = lv_event_get_code(e);

	if (event == LV_EVENT_SCREEN_LOADED) {
		// do something with your code when screen was load

	} else if(event == LV_EVENT_SCREEN_UNLOADED){
              // when load other screen without delete this screen


hope it solve your issue