曲线组件

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

曲线组件

239 Views
CHD
Contributor I

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

0 Kudos
1 Reply

213 Views
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 Kudos