TMlSkinPopupMessage
A notification window that pops up from the bottom-right corner of the screen, similar to a system toast.
Notes
- Call the component's popup method to show a message;
ClosePausesets how long it stays before closing itself. - When several messages appear at once,
HeapUpstacks them upwards andAutoAlignarranges their positions. - The three Icon properties are the icons for success, failure and information messages.
- With
AvoidFullScreenDisturbon, nothing pops up while a full-screen application (a video or a presentation) is detected.
Example
From the demo MlSkin.Demo.HtmlLabel&TMlSkinPopupMessage功能演示.v4.x (.dfm form file)
object mlpm1: TMlSkinPopupMessage
TitleFont.Charset = DEFAULT_CHARSET
TitleFont.Color = clWindowText
TitleFont.Height = -11
TitleFont.Name = 'Tahoma'
TitleFont.Style = []
TextFont.Charset = DEFAULT_CHARSET
TextFont.Color = clWindowText
TextFont.Height = -11
TextFont.Name = 'Tahoma'
TextFont.Style = []
ClientColor = 15920353
Icon_Success = 'MlSkinMsgIcon_OK'
Icon_Failue = 'MlSkinMsgIcon_Error'
Icon_Information = 'MlSkinMsgIcon_Info'
Left = 200
Top = 520
end
Properties 17
| Name | Type | Default | Description |
|---|---|---|---|
ActiveAnimate | Boolean | True | Whether the window slides in when it appears. |
AvoidFullScreenDisturb | Boolean | True | Do-not-disturb: no message pops up while a full-screen application (video, presentation) is running. |
ClosePause | Integer | 5000 | How long the message stays on screen, in milliseconds, before closing itself. |
HeapUp | Boolean | True | Stacks multiple messages upwards instead of letting them overlap. |
AutoAlign | Boolean | True | Arranges the message windows automatically, closing gaps when one of them disappears. |
MinHeight | Integer | 100 | Minimum height of the message window in pixels; it grows as needed for longer content. |
Width | Integer | 228 | Width of the message window in pixels. |
TitileColor | TColor | $00FFC446 | Color of the message title bar. |
TitleFont | TFont | — | Font of the title text. |
TextFont | TFont | — | Font of the message body. |
TextOffsetX | Integer | 10 | Horizontal offset of the body text in pixels. |
TextOffsetY | Integer | 20 | Vertical offset of the body text in pixels. |
ClientColor | TColor | — | Background color of the message body area. |
Icon_Success | TMlResID | — | Icon for success messages. |
Icon_Failue | TMlResID | — | Icon for failure messages. |
Icon_Information | TMlResID | — | Icon for information messages. |
Button | TMsgButton | — | The button on the message window: caption, fonts, images and whether it is visible. |
Events 3
| Name | Type | Default | Description |
|---|---|---|---|
OnButtonClick | TNotifyEvent | — | Fires when the button on the message window is clicked. |
OnClose | TNotifyEvent | — | Fires when the message closes, whether automatically or by the user. |
OnClick | TNotifyEvent | — | Fires when the message window is clicked, typically to open the details. |
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.