eez-open / studio

Cross-platform low-code GUI and automation
https://www.envox.eu/studio/studio-introduction/
GNU General Public License v3.0
601 stars 99 forks source link

[LVGL] In the Imgbutton widget, use `lv_imagebutton_set_src` instead of `lv_imgbtn_set_src` in LVGL 9.x #575

Closed toko02 closed 2 weeks ago

toko02 commented 1 month ago
  1. Create LVLG 9.x imgbutton e.g. power_off
  2. Assign image e.g. img_power_off to imgbutton
  3. Generate code with build in EEZ Studio
  4. Compiler error because of following line: lv_imgbtn_set_src(power_off, LV_IMAGEBUTTON_STATE_RELEASED, NULL, &img_power_off, NULL);

Fix rename above line with: lv_imagebutton_set_src(power_off, LV_IMAGEBUTTON_STATE_RELEASED, NULL, &img_power_off, NULL); Now with LVGL 9.2 compiles without error under Windows 11 with EEZ Studio 0.16.1

Please note with LVLG 8 lv_imgbtn_set_src is correct but it changed in LVGL 9 to lv_imagebutton_set_src

mvladic commented 1 month ago

Fixed.

Thanks!