TMlSkinAlphaForm
A layered, custom-shaped form: a PNG with an alpha channel defines both the window shape and its look.
Notes
Backgroundis that image. Wherever the image is transparent the window is cut away, which is how irregular shapes are made.- Without a title bar, turn on
EnabledMoveso the window can be dragged from anywhere on its surface. HitTestWidthis how wide the resize-sensitive strip along the window edge is.
Example
From the demo MlSkin.Demo.MlSkinHint功能演示.v3.0 (.dfm form file)
object maf1: TMlSkinAlphaForm
Background = 'qd'
Left = 8
Top = 16
end
Properties 4
| 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. |
Background | TMlResID | — | Background image of the form. Use a PNG with an alpha channel: wherever the image is transparent the window is too, so the image defines the shape. |
EnabledMove | Boolean | True | Lets the form be dragged from anywhere on its surface — needed for shaped forms without a title bar. |
HitTestWidth | Integer | 10 | Width in pixels of the resize-sensitive strip along the form edge. |
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.