TMlSkinAlphaForm

A layered, custom-shaped form: a PNG with an alpha channel defines both the window shape and its look.

Category
Alpha form
Unit
uMlSkinAlphaForm.pas
Inherits from
TMlHookWindowProc

Notes

  • Background is 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 EnabledMove so the window can be dragged from anywhere on its surface.
  • HitTestWidth is 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

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.
BackgroundTMlResIDBackground 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.
EnabledMoveBooleanTrueLets the form be dragged from anywhere on its surface — needed for shaped forms without a title bar.
HitTestWidthInteger10Width 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.