Skip to main content

AnimationDelay Property

The number of milliseconds between frame changes.

Definition​

Property "OLE.AnimationDelay" as Integer

Default: 50

Remarks​

The AnimationDelay is used with the Animated property to sequentially animate the control's image. After using the FrameCount property to divide the image into equally sized frames, set this propery to the number of milliseconds between frame changes. The start the animation by setting the Animated property to 1.

tip

For non-sequential animation, you can capture your own timer event and use the Frame property to change frames at specific intervals.

Examples​

// Set the image and divide it into 8 frames
Set_Property(@Window:".OLE_PICTURE", "OLE.Image", "c:\animated.bmp")
Set_Property(@Window:".OLE_PICTURE", "OLE.FrameCount", 8)

// Set animation delay and start the animation
Set_Property(@Window:".OLE_PICTURE", "OLE.AnimationDelay", 75)
Set_Property(@Window:".OLE_PICTURE", "OLE.Animated", 1)

See Also​

Animated, FrameCount, Frame