Description
What MCU/Processor/Board and compiler are you using?
STM32H7
What LVGL version are you using?
v8.2.0
What do you want to achieve?
port the v7.11 to v8.2.0
What have you tried so far?
Code to reproduce
Add a code snippet which can run in the simulator. It should contain only the relevant code that compiles without errors when separated from your main code base.
The code block(s) should be formatted like:
/*You code here*/
Screenshot and/or video
Hi, Team @kisvegabor ,@embeddedt, @pete-pjb,
I am porting the old version v7.11 to v8.2.0. There have some customized widget in my project and were implemented as your old guide like the below and it works.
my_btn_ancestor_design= lv_obj_get_design_cb(btn_my)
my_btn_ancestor_signal=lv_obj_get_signal_cb(btn_my)
lv_obj_set_design_cb(btn_my, my_btn_design);
lv_obj_set_signal_cb(btn_my, my_btn_signal);
But for v8.2.0, all drawing and signaling cb were changed to event cb and need to modfify them.
I want to implement the function as below:
- keep using the default drawing and signaling cb, just add some customized drawing or signaling on it.
- replace the default with my own drawing and signaling cb.
Is there any document or example now? Would like to have your help!
Best Regards,
James