TMlSkinVirtualStringTree

A skinned VirtualStringTree: the well-known third-party tree control fitted with skinned scrollbars and border.

Category
List & tree
Unit
uMlSkinVirtualTree.pas
Inherits from
TVirtualStringTree_ml

Notes

  • The tree itself works exactly as in VirtualTreeView — node data, columns and events are unchanged.
  • Scrolling comes from HScrollBar and VScrollBar, and the outer border can be drawn by a MlSkinBorderPanel.

Example

From the demo MlSkin.Demo.360云盘.v3.0 (.dfm form file)

object mlsknvrtlstrngtr1: TMlSkinVirtualStringTree
  Left = 0
  Top = 0
  Width = 870
  Height = 453
  Align = alClient
  BorderStyle = bsNone
  DefaultNodeHeight = 45
  Header.AutoSizeIndex = 1
  Header.Background = 16578291
  Header.DefaultHeight = 40
  Header.Font.Charset = DEFAULT_CHARSET
  Header.Font.Color = clWindowText
  Header.Font.Height = -11
  Header.Font.Name = 'Tahoma'
  Header.Font.Style = []
  Header.Height = 40
  Header.Options = [hoAutoResize, hoOwnerDraw, hoShowSortGlyphs, hoVisible]
  Margin = 0
  TabOrder = 0

Properties 4

NameTypeDefaultDescription
AboutTMlAboutInfo—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.
MlSkinBorderPanelTMlSkinBorderPanel—The border panel to attach; once set it draws this control's outer border.
VScrollBarTMlSkinScrollBar—Settings for the vertical scrollbar; it looks and behaves like TMlSkinScrollBar.
HScrollBarTMlSkinScrollBar—Settings for the horizontal scrollbar; it looks and behaves like TMlSkinScrollBar.

Events 1

NameTypeDefaultDescription
OnScrollBarChangeTNotifyEvent—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.