TMlSkinSvgAnimate

An animated SVG control (new in v5.7) for loading spinners and animated icons.

Category
SVG controls
Unit
uMlSkinSvgAnimate.pas
Inherits from
TGraphicControl

Notes

  • Active plays and pauses, Loop repeats the animation, and OnComplete fires when a pass finishes.
  • FPS is the frame rate and Speed a playback multiplier.
  • The remaining display properties (SvgColor, Stretch, Center, Opacity) work as on TMlSkinSvgImage.

Properties 11

NameTypeDefaultDescription
MlResIDTMlResIDThe SVG resource ID to display (from the resource manager), or the path of an SVG file.
SvgTMlSvgBrushThe SVG content object: set the SVG source directly or adjust the rendering parameters here.
SvgColorTColorclNoneOverrides the whole SVG with one colour for monochrome icons; leave it unset to keep the SVG's own colours.
ActiveBooleanFalseWhether the animation is playing.
FPSInteger60Frames rendered per second.
LoopBooleanTrueWhether the animation repeats.
SpeedSinglePlayback multiplier; 1 is normal speed.
StretchBooleanTrueStretches the image to the control size.
CenterBooleanTrueCentres the image in the control.
TransparentBooleanTrueTransparent background: the control skips its own fill and shows the form background (image or color) instead.
OpacityByte255Opacity: 0 fully transparent, 255 opaque.

Events 1

NameTypeDefaultDescription
OnCompleteTNotifyEventFires 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.