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

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

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

Jump to solution
253 Views
alen-liao
Contributor III

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

0 Kudos
1 Solution
226 Views
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

View solution in original post

0 Kudos
1 Reply
227 Views
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 Kudos