TMlSkinRes
The image resource component: it holds the pictures the application uses (PNG, JPG, SVG) so other controls can reference them by ID.
Notes
- Double-click it to open the resource manager, where you import images, give them IDs and add per-DPI versions.
- The image properties on controls take those IDs — or the full path of an image file.
- With
UseSkinFileon, images are read from an external skin file, which is how swappable skin packs are built. Formlinks the resource to the form it applies to.
Example
From the demo MlSkin.Demo.360安全卫士.v3.1 (.dfm form file)
object mlsknrs1: TMlSkinRes
Form.ActiveGradient = True
Form.DoubleFrame = True
Form.FillStyle = mfsBlur
Form.FlatFrame = False
Form.RoundWindow = True
Form.TitleHeight = 45
Form.TitlerColor = 16761926
Form.Color = 15920353
Form.FramWidth = 2
Form.HitTestWidth = 5
Form.GradientHeight = 168
Form.CustomPicture = '.\Skin\360bg.png'
Form.Style = ssPicture
Form.DefaultSkinOrder = 0
UseSkinFile = True
Left = 88
Top = 56
end
Properties 3
| 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. |
Form | TMlFormSkinRes | — | The form skin resource this component applies to. |
UseSkinFile | Boolean | — | Reads the images from an external skin file, which allows swappable skin packs instead of compiling the images in. |
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.