XUITHProgressBar()

Methods

SetBarBorderRadius(nRadius)

设置进度条圆角
Parameters:
Name Type Description
nRadius Number 圆角
Properties:
Name Type Description
BarBorderRadius NUmber 0

SetIconRightImage(strRightImg)

设置右滑块的图标路径
Parameters:
Name Type Description
strRightImg ImageProp 右滑块的路径
Properties:
Name Type Description
IconRightImage ImageProp "XUITHProgressBar/images/zuo2_jindu_huakuai3.png"

SetIconSize(nIndex, nWidth, nHeight)

设置右滑块或上标注的图标大小
Parameters:
Name Type Description
nIndex Number 索引0~1 0:上标注 1:右标注
nWidth Number 宽度
nHeight Number 高度
Properties:
Name Type Description
nIconSize Collection [-1,0,0]

SetIconTopImage(strTopImg)

设置上标注的图标路径
Parameters:
Name Type Description
strTopImg ImageProp 上标注的路径
Properties:
Name Type Description
IconTopImage ImageProp "XUITHProgressBar/images/zuo2_jindu_huakuai2.png"

SetMarkPointShow(bShow)

设置标注显示
Parameters:
Name Type Description
bShow Boolean 是否显示
Properties:
Name Type Description
MarkPointShow Boolean true

SetProgressBarColor(strColorStart, strColorEnd)

设置进度条颜色
Parameters:
Name Type Description
strColorStart String 进度条初始值颜色
strColorEnd String 进度条末尾颜色
Properties:
Name Type Description
ProgressBarColor Collection ["0xff4285FF", "0xff03DFFF"]

SetProgressBarValue(fValue)

设置进度条
Parameters:
Name Type Description
fValue Float 进度
Properties:
Name Type Description
Value Float 60

SetProgressBarZero()

设置进度条归0

SetTemperatureRange(nMax)

设置温度范围
Parameters:
Name Type Description
nMax Number 最大值
Properties:
Name Type Description
nMaxData Number 100

SetThickness(nThick)

设置进度条粗细
Parameters:
Name Type Description
nThick Number 粗细
Properties:
Name Type Description
nThickData Number 10