Notes
Text is the message, ActiveScroll starts scrolling, and Speed with Step set how fast and how far it moves.
LoopMode repeats the scroll; AllowClick makes it clickable and fires OnClick, for example to open the full announcement.
Properties 10
| Name | Type | Default | Description |
|---|
ActiveScroll | Boolean | True | Whether the text scrolls. Turn it off for static text. |
AllowClick | Boolean | False | Whether the strip is clickable; when on, clicking the text fires OnClick. |
Text | string | — | The text to scroll. |
Font | TFont | — | Text font. |
HotFont | TFont | — | Font used while the mouse is over the text, usually paired with AllowClick to show it is clickable. |
LoopMode | Boolean | True | Whether scrolling repeats. With it off the text scrolls once and stops. |
Speed | Cardinal | 100 | Scroll speed: the interval between steps, so smaller values scroll faster. |
Step | Byte | 2 | How many pixels the text moves each step; larger values look jumpier. |
Width | Integer | — | Width of the message strip in pixels. |
Cursor | TCursor | crHandPoint | Mouse cursor shape; usually a hand when the strip is clickable. |
Events 1
| Name | Type | Default | Description |
|---|
OnClick | TNotifyEvent | — | Fires when the control is clicked. |
Properties of TMlSkinNCCtrlBase 6
| Name | Type | Default | Description |
|---|
About | TMlAboutInfo | — | A design-time property: double-clicking it in the Object Inspector opens the MLSkin about box with the component version. It has no effect at run time and is not stored in the .dfm. |
PutSide | TSideKind | skdTop | Which edge of the non-client area the control sits on: skdTop, skdBottom, skdLeft or skdRight. |
Tag | Integer | 0 | A spare integer for your own bookkeeping; the component itself does not use it. |
Pos | TNCCtrlPos | — | Position along that edge: an alignment plus X/Y offsets. With UseDefault on, the default layout is used. |
Hint | string | — | Tooltip text shown when the mouse rests on the control. |
Visible | Boolean | True | Whether the control is visible. |
Events of TMlSkinNCCtrlBase 5
| Name | Type | Default | Description |
|---|
OnLMouseDown | TNotifyEvent | — | Fires when the left mouse button goes down on the control. |
OnLMouseUp | TNotifyEvent | — | Fires when the left mouse button is released on the control. |
OnMouseEnter | TNotifyEvent | — | Fires when the mouse enters the control. |
OnMouseLeave | TNotifyEvent | — | Fires when the mouse leaves the control. |
OnDPIChanged | TMlDPIChangedEvent | — | Fires when the screen DPI changes, for example when the window moves to a monitor with a different scaling — a good place to re-adjust anything you draw yourself. |
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.