怎样调整GUI-Guider自带的Meter控件刻度与外圆边框的距离?

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

怎样调整GUI-Guider自带的Meter控件刻度与外圆边框的距离?

跳至解决方案
683 次查看
alen-liao
Contributor III

在使用GUI-Guider自带的Meter控件时,想调整刻度与外圆边框的距离。请问怎样调整?

0 项奖励
回复
1 解答
656 次查看
WenbinYuan
NXP Employee
NXP Employee

Hi @alen-liao,

 

The GUI Guider doesn't support this configuration but you can use custom code below to adjust the distance.

lv_obj_set_style_pad_all(ui->screen_1_meter_1, 20, 0);

Please check the screenshot:

WenbinYuan_0-1712111924456.png

 

Best Regards,

Wenbin

在原帖中查看解决方案

0 项奖励
回复
1 回复
657 次查看
WenbinYuan
NXP Employee
NXP Employee

Hi @alen-liao,

 

The GUI Guider doesn't support this configuration but you can use custom code below to adjust the distance.

lv_obj_set_style_pad_all(ui->screen_1_meter_1, 20, 0);

Please check the screenshot:

WenbinYuan_0-1712111924456.png

 

Best Regards,

Wenbin

0 项奖励
回复