new XUIScrollContainer()
Methods
-
GetBgColor() → {String}
-
获取背景颜色
Returns:
String - 背景颜色 -
GetBgImage() → {String}
-
获取背景图片
Returns:
String - 背景图片路径 -
GetScrollBarColor() → {Array}
-
获取滚动条颜色
Returns:
Array -
GetScrollBarFacade() → {Array}
-
获取滚动条样式
Returns:
Array -
IgnoreEvents(bIgnore)
-
穿透鼠标事件
Parameters:
Name Type Description bIgnore
Boolean 穿透鼠标事件 Properties:
Name Type Description IgnoreEvents
Boolean false -
IsDrawColor() → {Boolean}
-
获取是否使用颜色绘制
Returns:
Boolean - 是否使用颜色绘制 -
SetBgColor(strColor)
-
设置背景颜色
Parameters:
Name Type Description strColor
String Properties:
Name Type Description BgColor
Color "0xffffffff" -
SetBgImage(strImage)
-
设置背景图片
Parameters:
Name Type Description strImage
ImageProp Properties:
Name Type Description BgImagePath
ImageProp "" -
SetBorderColor(strColor)
-
设置边框颜色
Parameters:
Name Type Description strColor
String Properties:
Name Type Description BorderColor
Color "0xffff0000" -
SetBorderRadius(nRadius)
-
设置边框圆角
Parameters:
Name Type Description nRadius
Number Properties:
Name Type Description BorderRadius
Number 0 -
SetBorderType(strType)
-
设置边框类型
Parameters:
Name Type Description strType
String Properties:
Name Type Description BorderType
Combo ["solid","dashed","dotted"] -
SetBorderWidth(nWidth)
-
设置边框线宽
Parameters:
Name Type Description nWidth
Number Properties:
Name Type Description BorderWidth
Number 1 -
SetDrawColor(bDrawColor)
-
是否用颜色绘制
Parameters:
Name Type Description bDrawColor
Boolean 是否使用颜色绘制 Properties:
Name Type Description DrawColor
Boolean true -
SetScrollBarColor(bgColor, trackColor, ThumbColor, ButtonColor)
-
滚动条颜色
Parameters:
Name Type Description bgColor
Number 背景色 trackColor
Number 轨道颜色 ThumbColor
Number 滑块颜色 ButtonColor
Number 按钮颜色 Properties:
Name Type Description SetScrollBarColor
Collection ["0x0000ff00","0x0000ff00","0xff1e4952","0x0000ff00"] -
SetScrollBarFacade(nWidth, nTrackR, nThumbR, nButtonH, nButtonR)
-
滚动条样式
Parameters:
Name Type Description nWidth
Number 滚动条宽度 nTrackR
Number 轨道圆角 nThumbR
Number 滑块圆角 nButtonH
Number 按钮高度 nButtonR
Number 按钮圆角 Properties:
Name Type Description ScrollBarFacade
Collection [8,10,10,0,0] -
SetShowBorder(bShowBorder)
-
是否显示边框
Parameters:
Name Type Description bShowBorder
Boolean 是否显示边框 Properties:
Name Type Description ShowBorder
Boolean false