曲线组件

取消
显示结果 
显示  仅  | 搜索替代 
您的意思是: 

曲线组件

448 次查看
CHD
Contributor I

请问曲线组件在程序运行时,怎么禁止人为触摸改变?3-18-1.png3-18-2.png

0 项奖励
回复
1 回复

422 次查看
WenbinYuan
NXP Employee
NXP Employee

Hi @CHD,

 

For this issue you could clear the clickable flag of arc widgets.

For example, here are two ways to achieve the goal:

  1. add custom code to screen that contain the arc 
    lv_obj_clear_flag(ui->screen_arc_1, LV_OBJ_FLAG_CLICKABLE);​
    WenbinYuan_3-1710816654345.png
  2. add event setting to the screen to clear the arc flagWenbinYuan_2-1710816610283.png

 

Hope it helps you.

 

Best Regards,

Wenbin

 

0 项奖励
回复