Notes
MinSize keeps the resized area from collapsing below a minimum.
ResizeType chooses the look: rtDot draws a dotted grip, rtNone draws none.
- With
AutoSnap on, dragging past the minimum snaps the pane closed.
OnMoved fires after the drag; use OnCanResize to veto a resize.
Properties 5
| Name | Type | Default | Description |
|---|
AutoSnap | Boolean | True | Snaps the neighbouring pane closed when it is dragged past its minimum size. |
ResizeType | TMlResizeType | rtDot | Look of the splitter: rtDot draws a dotted grip, rtNone draws nothing. |
MinSize | NaturalNumber | 30 | Minimum size in pixels the resized pane may shrink to. |
DotColor | TColor | — | Color of the dotted grip. |
Color | TColor | clWhite | Background color of the control; ignored while Transparent is on. |
Events 2
| Name | Type | Default | Description |
|---|
OnCanResize | TCanResizeEvent | — | Fires during the drag so you can inspect and veto the resize. |
OnMoved | TNotifyEvent | — | Fires once the drag finishes and the new size is applied. |
Properties of TMlSkinCustomControl 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. |
Transparent | Boolean | True | Transparent background: the control skips its own fill and shows the form background (image or color) instead. |
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.