TMlSkinRadioBox
The skinned radio button: only one in a group can be selected, with the marker drawn from images.
Notes
- Radio buttons sharing a
GroupIndexare mutually exclusive — selecting one clears the others. Checkedreads and writes the state and firesOnChanged.Picturessupplies the button images.
Example
From the demo MlSkin.Demo.图片轮播滑动显示.v4.6 (.dfm form file)
object rb1: TMlSkinRadioBox
Left = 273
Top = 432
Width = 113
Height = 17
Pictures = 'MlSkinRadiobtn'
Checked = True
Light.Active = False
TabOrder = 1
TabStop = True
OnClick = rb1Click
end
Properties 5
| 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. |
Pictures | TMlResID | — | The images used by the control, split into frames per state: unchecked, checked, hot, disabled. |
Checked | Boolean | False | The checked state. |
Light | TMlLightClass | — | Glow effect: switch, glow color and blur radius. |
GroupIndex | Integer | 0 | Group number: buttons sharing a number are mutually exclusive, so only one stays down. 0 means no grouping. |
Events 1
| Name | Type | Default | Description |
|---|---|---|---|
OnChanged | TNotifyEvent | — | Fires after the state or value has changed. |
Properties of TMlSkinCustomControl 4
| Name | Type | Default | Description |
|---|---|---|---|
Transparent | Boolean | True | Transparent background: the control skips its own fill and shows the form background (image or color) instead. |
Color | TColor | clWhite | Background color of the control; ignored while Transparent is on. |
AutoInvalidate | Boolean | False | Repaints automatically when the content changes. Turn it on if property changes do not show up. |
EraseBackground | Boolean | False | Whether the background is erased before painting; worth toggling if the control flickers. |
Events of TMlSkinCustomControl 4
| Name | Type | Default | Description |
|---|---|---|---|
OnDPIChanged | TMlDPIChangedEvent | — | Fires when the screen DPI changes, for example when the window moves to a monitor with a different scaling — a good place to re-adjust anything you draw yourself. |
OnBackgroundChanging | TMlBackgroundEvent | — | Fires just before the background changes, giving you a chance to adjust what is drawn. |
OnBackgroundChanged | TMlCustomDrawEvent | — | Fires after the background has been drawn, so you can paint on top of it. |
OnVisibleChanged | TNotifyEvent | — | Fires when the control is shown or hidden. |
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.