StopAnimation method
Stops animation of the display. When this method is called, the following occurs in the indicated order:
- The BeforeAnimationStop event is fired.
- When the BeforeAnimationStop event returns, the display is made invisible and the Visible property is set to False.
- All elements are deactivated.
- The Animating property is set to False.
- The AfterAnimationStop event is fired.
Syntax
Display
.StopAnimation
where
Display
– is the name of a Display object or an expression that evaluates to a Display object.Remarks
- If display animation has already been stopped or is in the process of being stopped, calls to this method are ignored.
- When testing the animation in displays in the Graphic Display editor, calls to this method raise an error with Err.Number equal to gfxErrorTestAnimation.
- If the display is being printed using the PrintDisplay command or a recipe upload or download is in progress, stopping the animation will not begin (and the events mentioned above will not fire) until the print or download is complete. If, during the time the operation is being processed the display is reanimated, the process of stopping animation and firing the related events will not occur.
Provide Feedback