TMlFormLayerBorder

Gives the form an image border, the building block for custom-shaped windows and picture frames.

Category
Forms & borders
Unit
uMlFormBorder.pas
Inherits from
TComponent

Notes

  • Image is the border picture, Size sets how much of it each edge takes, and the middle is stretched or tiled according to StretchKind.
  • With DragEnabled on, dragging the border moves the form.
  • You can also use the ImageBorder property of TMlSkinForm instead of placing this component separately.

Example

From the demo MlSkin.Demo.异形窗体演示.下载悬浮框.方法2.v3.0 (.dfm form file)

object mlfrmlyrbrdr1: TMlFormLayerBorder
  StretchKind = skTile
  Image = '.\red.png'
  Size.Left = 96
  Size.Top = 22
  Size.Right = 21
  Size.Bottom = 18
  Transparent = False
  InflateSize.Left = 20
  InflateSize.Top = 2
  InflateSize.Right = -20
  InflateSize.Bottom = -2
  Left = 40
  Top = 32
end

Properties 6

NameTypeDefaultDescription
DragEnabledBooleanTrueLets the user drag the form by its border. Commonly enabled for custom-shaped forms with no title bar.
StretchKindTMlStretchKindskAutoHow the middle of each edge is filled: skAuto stretches it, skTile tiles it. Tiling keeps textured images undistorted.
ImageTMlResIDThe border image, given as a resource ID or file path. It should contain the four corners and four edges.
SizeTMlBorderSizeHow wide each edge (left, top, right, bottom) is taken from the image — the nine-slice split.
TransparentBooleanTrueTransparent background: the control skips its own fill and shows the form background (image or color) instead.
InflateSizeTMlBorderSizeHow far the border extends beyond the form, used for effects such as an outer glow or drop shadow.

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.