GuiGuider1.6.1按钮问题

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

GuiGuider1.6.1按钮问题

1,139 Views
RayC02
Contributor II

为什么我在按钮上层放一个图片,点击图片触发不到点击按钮,但是官方提供的空调例程就可以,它也是在按钮上放的一个图片,按到图片也能触发点击按钮,也没添加事件。官方例程能点,自己创建得就点不了

0 Kudos
Reply
1 Reply

1,122 Views
zhenhualuo
NXP Employee
NXP Employee

Hi @RayC02,

In the aricon demo, the following code is added in custom.c to clear clickable flag for image, so the click event is triggered for button under image. 

    lv_obj_clear_flag(ui->screen_img_1, LV_OBJ_FLAG_CLICKABLE);

You can use the same method for image widget or enable click event for image widget directly.

Best Regards,

Zhenhua

0 Kudos
Reply