TMlSkinMemo
The skinned multi-line edit: used like a standard TMemo, with a transparent background and skinned scrollbars.
Notes
- Turning on
Transparentlets the form background show through — this is how a transparent memo is built. - Scrolling is handled by
HScrollBarandVScrollBar, styled like the rest of the skin. - The outer border can be drawn by a
MlSkinBorderPanelfor an image-framed text box.
Example
From the demo MlSkin.Demo.HtmlLabel&TMlSkinPopupMessage功能演示.v4.x (.dfm form file)
object mmo1: TMlSkinMemo
Left = 10
Top = 10
Width = 637
Height = 204
VScrollBar = sb1
Anchors = [akLeft, akTop, akRight, akBottom]
BorderStyle = bsNone
Color = clWhite
DoubleBuffered = False
Font.Charset = DEFAULT_CHARSET
Font.Color = clWindowText
Font.Height = -12
Font.Name = 'Tahoma'
Font.Style = []
Lines.Strings = (
'<br>'
'ttp://www.xeframework.com/">'
This control adds no properties of its own; everything comes from its base class.
Properties of TMlSkinCustomMemo 5
| 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. |
MlSkinBorderPanel | TMlSkinBorderPanel | — | The border panel to attach; once set it draws this control's outer border. |
VScrollBar | TMlSkinScrollBar | — | Settings for the vertical scrollbar; it looks and behaves like TMlSkinScrollBar. |
HScrollBar | TMlSkinScrollBar | — | Settings for the horizontal scrollbar; it looks and behaves like TMlSkinScrollBar. |
Transparent | Boolean | False | Transparent background: the control skips its own fill and shows the form background (image or color) instead. |
Events of TMlSkinCustomMemo 1
| Name | Type | Default | Description |
|---|---|---|---|
OnScrollBarChange | TNotifyEvent | — | Fires when the scrollbar position changes. |
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.