TMlSkinTips

提示条控件,在界面上显示一条带箭头的提示框,常用于引导提示或校验提示。

分类
标签与提示
所在单元
uMlSkinTips.pas
继承自
TMlSkinCustomTips

用法要点

  • TipsDirection 决定箭头朝向:hdTop 在上方、hdBottom 在下方、hdCustom 自定义位置。
  • PauseTime 设定自动消失的时间;CloseButtonVisible 控制是否显示关闭按钮。
  • 颜色和字体分别用 TipsColorTipsFont,标题另用 TitleFont

示例

摘自 Demo:MlSkin.Demo.提示条(Tips).v3.0(窗体文件 .dfm)

object MlSkinTips1: TMlSkinTips
  TipsColor = 11596287
  FrameColor = 700646
  TipsFont.Charset = DEFAULT_CHARSET
  TipsFont.Color = 28146
  TipsFont.Height = -12
  TipsFont.Name = 'Tahoma'
  TipsFont.Style = []
  TitleFont.Charset = DEFAULT_CHARSET
  TitleFont.Color = 5326307
  TitleFont.Height = -13
  TitleFont.Name = 'Tahoma'
  TitleFont.Style = [fsBold]
  Left = 72
  Top = 32
end

属性 9

名称类型默认值说明
AlignmentHorizontalTAlignmenttaLeftJustify文字的水平对齐方式:左对齐、居中或右对齐。
AlignmentVerticalTVerticalAlignmenttaAlignTop文字的垂直对齐方式:顶端、居中或底端。
TipsDirectionTTipsDirectionhdTop提示框箭头的方向:hdTop 指向上方、hdBottom 指向下方、hdCustom 自定义位置。
TipsColorTColor提示框的底色。
FrameColorTColor边框颜色。
TipsFontTFont提示正文的字体。
TitleFontTFont提示标题的字体。
PauseTimeInteger3500提示显示多久后自动消失(毫秒)。
CloseButtonVisibleBooleanTrue是否在提示框上显示关闭按钮。

本页只列出 MlSkin 新增的属性和事件;Align、Anchors、Font、OnClick 等标准 VCL 属性同样可用,用法与原生控件一致。

离线帮助文档需要离线查阅时,可下载 PDF / CHM 版帮助文档。