TMlSkinTips

A tip bar: a callout box with a pointer, typically used for guidance or validation messages.

Category
Labels & hints
Unit
uMlSkinTips.pas
Inherits from
TMlSkinCustomTips

Notes

  • TipsDirection sets where the pointer goes: hdTop, hdBottom or hdCustom for a position you choose.
  • PauseTime is how long it stays before disappearing; CloseButtonVisible shows or hides the close button.
  • Colors and fonts come from TipsColor and TipsFont, with TitleFont for the title.

Example

From the demo MlSkin.Demo.提示条(Tips).v3.0 (.dfm form file)

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

Properties 9

NameTypeDefaultDescription
AlignmentHorizontalTAlignmenttaLeftJustifyHorizontal text alignment: left, centred or right.
AlignmentVerticalTVerticalAlignmenttaAlignTopVertical text alignment: top, centred or bottom.
TipsDirectionTTipsDirectionhdTopDirection of the callout pointer: hdTop, hdBottom, or hdCustom for a position you set.
TipsColorTColorBackground color of the tip box.
FrameColorTColorBorder color.
TipsFontTFontFont of the tip text.
TitleFontTFontFont of the tip title.
PauseTimeInteger3500How long the tip stays before disappearing, in milliseconds.
CloseButtonVisibleBooleanTrueWhether a close button is shown on the tip box.

Only the properties and events MLSkin adds are listed here. Standard VCL properties such as Align, Anchors, Font and OnClick are available too and behave exactly as on the stock controls.

Offline helpA PDF / CHM version is available for offline reading.