new XUIInfoBox()
Methods
-
AddContent(strText)
-
添加提示框内文本
Parameters:
Name Type Description strText
String 提示框内添加的文本 Properties:
Name Type Description AddContent
String "" -
AddContentText(strText)
-
添加提示框内文本带滚动条
Parameters:
Name Type Description strText
String 提示框内添加的文本 Properties:
Name Type Description AddContentText
String "" -
ClearContent()
-
清除内容
-
SetBgColor(strColor)
-
背景颜色
Parameters:
Name Type Description strColor
String 背景颜色 Properties:
Name Type Description BgColor
Color "0xffffffff" -
SetBgDrawColor(bDrawColor)
-
背景颜色绘制
Parameters:
Name Type Description bDrawColor
Boolean 是否以颜色绘制 Properties:
Name Type Description DrawColor
Boolean true -
SetBgImg(strPath)
-
背景图片
Parameters:
Name Type Description strPath
ImageProp 背景图片 Properties:
Name Type Description BgImg
ImageProp "" -
SetBorderColor(strColor)
-
修改提示框边框颜色
Parameters:
Name Type Description strColor
String 提示框的高度 Properties:
Name Type Description BorderColor
Color "0xff000000" -
SetBorderWidth(nWidth)
-
修改提示框边框粗细
Parameters:
Name Type Description nWidth
Number 提示框的高度 Properties:
Name Type Description BorderWidth
Number 1 -
SetCurrentFontColor(strColor)
-
当前文本颜色
Parameters:
Name Type Description strColor
String 文本颜色 Properties:
Name Type Description CurrentFontColor
Color "0xffff0000" -
SetFontFamily(strFamily)
-
修改文本样式
Parameters:
Name Type Description strFamily
String 文本样式 Properties:
Name Type Description FontFamily
String "楷体" -
SetFontSize(nSize)
-
修改文本大小
Parameters:
Name Type Description nSize
Number 文本大小 Properties:
Name Type Description FontSize
Number 16 -
SetOldFontColor(strColor)
-
历史文本颜色
Parameters:
Name Type Description strColor
String 文本颜色 Properties:
Name Type Description OldFontColor
Color "0xff000000" -
SetScrollBarColors(bgColor, trackColor, ThumbColor, ButtonColor)
-
滚动条颜色
Parameters:
Name Type Description bgColor
String 整体背景色 trackColor
String 轨道颜色 ThumbColor
String 滑块颜色 ButtonColor
String 按钮颜色 Properties:
Name Type Description ScrollBarColors
Collection ["0x0000ff00", "0x0000ff00", "0xff1b4675", "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 [10,10,10,0,0]