TMlSkinHint
A balloon hint component that takes over the application's hints, replacing the default yellow tooltip with a skinned one.
Notes
- Drop one on the form and every control's
Hintis shown through it. HintPauseTimeis how long the mouse must rest before the hint appears;HintHidePauseTimeis how long it stays.HintDirectionplaces the balloon relative to the pointer, andAutoPositionflips it near the screen edges.- Use
OnCustomHintwhen 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
| Name | Type | Default | Description |
|---|---|---|---|
AutoPosition | Boolean | True | Repositions the balloon automatically: near a screen edge it flips to the other side so it is not clipped. |
HintDirection | THintDirection | hdDown | Where the balloon appears relative to the pointer: below, above, left or right. |
HintColor | TColor | $00E2F7FC | Background color of the balloon. |
FrameColor | TColor | $0056D2F0 | Border color of the balloon. |
HintFont | TFont | — | Font of the balloon text. |
HintPauseTime | Integer | 600 | How long the mouse must rest before the hint appears, in milliseconds. |
HintHidePauseTime | Integer | 2000 | How long the hint stays before hiding itself, in milliseconds. |
Enabled | Boolean | True | Whether the component handles the application's hints; turning it off restores the system tooltips. |
Events 2
| Name | Type | Default | Description |
|---|---|---|---|
OnCustomHint | TOnCustomHint | — | Lets you draw the balloon content yourself, taking over its painting entirely. |
OnSelectHintDirection | TOnSelectHintDirection | — | Fires 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.