TMlSkinTips
提示条控件,在界面上显示一条带箭头的提示框,常用于引导提示或校验提示。
用法要点
TipsDirection决定箭头朝向:hdTop在上方、hdBottom在下方、hdCustom自定义位置。PauseTime设定自动消失的时间;CloseButtonVisible控制是否显示关闭按钮。- 颜色和字体分别用
TipsColor、TipsFont,标题另用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
| 名称 | 类型 | 默认值 | 说明 |
|---|---|---|---|
AlignmentHorizontal | TAlignment | taLeftJustify | 文字的水平对齐方式:左对齐、居中或右对齐。 |
AlignmentVertical | TVerticalAlignment | taAlignTop | 文字的垂直对齐方式:顶端、居中或底端。 |
TipsDirection | TTipsDirection | hdTop | 提示框箭头的方向:hdTop 指向上方、hdBottom 指向下方、hdCustom 自定义位置。 |
TipsColor | TColor | — | 提示框的底色。 |
FrameColor | TColor | — | 边框颜色。 |
TipsFont | TFont | — | 提示正文的字体。 |
TitleFont | TFont | — | 提示标题的字体。 |
PauseTime | Integer | 3500 | 提示显示多久后自动消失(毫秒)。 |
CloseButtonVisible | Boolean | True | 是否在提示框上显示关闭按钮。 |
本页只列出 MlSkin 新增的属性和事件;Align、Anchors、Font、OnClick 等标准 VCL 属性同样可用,用法与原生控件一致。