TMlSkinHint

A balloon hint component that takes over the application's hints, replacing the default yellow tooltip with a skinned one.

Category
Labels & hints
Unit
uMlSkinHint.pas
Inherits from
TComponent

Notes

  • Drop one on the form and every control's Hint is shown through it.
  • HintPauseTime is how long the mouse must rest before the hint appears; HintHidePauseTime is how long it stays.
  • HintDirection places the balloon relative to the pointer, and AutoPosition flips it near the screen edges.
  • Use OnCustomHint when you want to draw the hint content yourself.

Example

From the demo MlSkin.Demo.MlSkinHint功能演示.v3.0 (.dfm form file)

object MlSkinHint1: TMlSkinHint
  HintFont.Charset = DEFAULT_CHARSET
  HintFont.Color = 3031386
  HintFont.Height = -12
  HintFont.Name = 'Tahoma'
  HintFont.Style = []
  OnCustomHint = MlSkinHint1CustomHint
  OnSelectHintDirection = MlSkinHint1SelectHintDirection
  Left = 296
  Top = 24
end

Properties 8

NameTypeDefaultDescription
AutoPositionBooleanTrueRepositions the balloon automatically: near a screen edge it flips to the other side so it is not clipped.
HintDirectionTHintDirectionhdDownWhere the balloon appears relative to the pointer: below, above, left or right.
HintColorTColor$00E2F7FCBackground color of the balloon.
FrameColorTColor$0056D2F0Border color of the balloon.
HintFontTFontFont of the balloon text.
HintPauseTimeInteger600How long the mouse must rest before the hint appears, in milliseconds.
HintHidePauseTimeInteger2000How long the hint stays before hiding itself, in milliseconds.
EnabledBooleanTrueWhether the component handles the application's hints; turning it off restores the system tooltips.

Events 2

NameTypeDefaultDescription
OnCustomHintTOnCustomHintLets you draw the balloon content yourself, taking over its painting entirely.
OnSelectHintDirectionTOnSelectHintDirectionFires before the balloon shows, so you can decide which direction it pops up this time.

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.