The number of milliseconds between a pane's frame changes.
Usage
Set_Property(OLECtrlEntID, "OLE.PaneAnimationDelay[index]", Value)
Values
Value can be any positive or negative whole number:
Default: 50
Indices
Index | Description |
---|---|
index | Index to an existing pane |
Remarks
The PaneAnimationDelay is used with the PaneEffect property to sequentially animate a panel's image. After using the PaneFrameCount property to divide the pane's image into equally sized frames, set this propery to the number of milliseconds between frame changes. Start the animation by setting the PaneEffect property to "Animate".
For non-sequential animation, you can capture your own timer event and use the PaneFrame property to change frames at specific intervals.
Example
// Set the 2nd pane's image and divide it into 8 frames Set_Property(@Window:".OLE_STATUSBAR", "OLE.PaneImage[2]", "c:\animated.bmp") Set_Property(@Window:".OLE_STATUSBAR", "OLE.PaneFrameCount[2]", 8) // Set animation delay and start the animation Set_Property(@Window:".OLE_STATUSBAR", "OLE.PaneAnimationDelay[2]", 75) Set_Property(@Window:".OLE_STATUSBAR", "OLE.PaneEffect[2]", "Animate")