TMlSkinMemo

The skinned multi-line edit: used like a standard TMemo, with a transparent background and skinned scrollbars.

Category
Memo
Unit
uMlSkinMemo.pas
Inherits from
TMlSkinCustomMemo

Notes

  • Turning on Transparent lets the form background show through — this is how a transparent memo is built.
  • Scrolling is handled by HScrollBar and VScrollBar, styled like the rest of the skin.
  • The outer border can be drawn by a MlSkinBorderPanel for 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
NameTypeDefaultDescription
AboutTMlAboutInfoA 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.
MlSkinBorderPanelTMlSkinBorderPanelThe border panel to attach; once set it draws this control's outer border.
VScrollBarTMlSkinScrollBarSettings for the vertical scrollbar; it looks and behaves like TMlSkinScrollBar.
HScrollBarTMlSkinScrollBarSettings for the horizontal scrollbar; it looks and behaves like TMlSkinScrollBar.
TransparentBooleanFalseTransparent background: the control skips its own fill and shows the form background (image or color) instead.
Events of TMlSkinCustomMemo 1
NameTypeDefaultDescription
OnScrollBarChangeTNotifyEventFires 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.