TMlFormLayerBorder
Gives the form an image border, the building block for custom-shaped windows and picture frames.
Notes
Imageis the border picture,Sizesets how much of it each edge takes, and the middle is stretched or tiled according toStretchKind.- With
DragEnabledon, dragging the border moves the form. - You can also use the
ImageBorderproperty 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
| Name | Type | Default | Description |
|---|---|---|---|
DragEnabled | Boolean | True | Lets the user drag the form by its border. Commonly enabled for custom-shaped forms with no title bar. |
StretchKind | TMlStretchKind | skAuto | How the middle of each edge is filled: skAuto stretches it, skTile tiles it. Tiling keeps textured images undistorted. |
Image | TMlResID | — | The border image, given as a resource ID or file path. It should contain the four corners and four edges. |
Size | TMlBorderSize | — | How wide each edge (left, top, right, bottom) is taken from the image — the nine-slice split. |
Transparent | Boolean | True | Transparent background: the control skips its own fill and shows the form background (image or color) instead. |
InflateSize | TMlBorderSize | — | How 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.