TMlSkinSvgAnimate
An animated SVG control (new in v5.7) for loading spinners and animated icons.
Notes
Activeplays and pauses,Looprepeats the animation, andOnCompletefires when a pass finishes.FPSis the frame rate andSpeeda playback multiplier.- The remaining display properties (
SvgColor,Stretch,Center,Opacity) work as on TMlSkinSvgImage.
Properties 11
| Name | Type | Default | Description |
|---|---|---|---|
MlResID | TMlResID | — | The SVG resource ID to display (from the resource manager), or the path of an SVG file. |
Svg | TMlSvgBrush | — | The SVG content object: set the SVG source directly or adjust the rendering parameters here. |
SvgColor | TColor | clNone | Overrides the whole SVG with one colour for monochrome icons; leave it unset to keep the SVG's own colours. |
Active | Boolean | False | Whether the animation is playing. |
FPS | Integer | 60 | Frames rendered per second. |
Loop | Boolean | True | Whether the animation repeats. |
Speed | Single | — | Playback multiplier; 1 is normal speed. |
Stretch | Boolean | True | Stretches the image to the control size. |
Center | Boolean | True | Centres the image in the control. |
Transparent | Boolean | True | Transparent background: the control skips its own fill and shows the form background (image or color) instead. |
Opacity | Byte | 255 | Opacity: 0 fully transparent, 255 opaque. |
Events 1
| Name | Type | Default | Description |
|---|---|---|---|
OnComplete | TNotifyEvent | — | Fires when a pass through the animation finishes. |
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.