Migration v7 to v8.3 doubt

Description

I have a project running on v7 of lgvl running under esp32, I am in the process of making the update to v8.3 (latest) so far I have found most of the things in the docs.

What MCU/Processor/Board and compiler are you using?

ESP32 Arduino platform

What LVGL version are you using?

8.3

What do you want to achieve?

I would like to migrate these methods
lv_win_get_from_btn
lv_keyboard_set_cursor_manage

What have you tried so far?

Documentation but is not there anymore

Hi @beckmx ,

The lv_win_get_from_btn function appears to have been removed. You could do this instead:

    lv_obj_t * header = lv_obj_get_parent(ctrl_btn);
    lv_obj_t * win    = lv_obj_get_parent(header);

where win would point to your required window.

As far as I can remember the lv_keyboard_set_cursor_manage() function is just simply no longer required so you should be able to remove the call.

I hope that helps.

Kind Regards,

Pete

Thanx Pete, I found in the examples the get_parent stuff so I kinda got it, but well after making the migration, my code didn’t show anymore anything, but your hint did gave me more clues. Thanx !

1 Like