Changes the type of animation:
- of an image in an Image control.
- of a text in a Static control.
The parameters specific to the new type can be modified by 动画改变参数
// Changes the animation of the IMG_Image1 control
// Change the animation parameters of a static control
动画改变模式(<Control Name> , <Type of Animation>)
<Control Name>: Character string (with or without quotes)
Name of the image control or static control to use.
<Type of Animation>: Constant or character string (with quotes)
Animation to perform.
|动画参数.闪烁 (or "Blinking")||The static is alternately displayed in its default color and in its flashing color. |
|动画参数.滚动 (or "Scrolling")||The image (or the caption) is progressively displayed, from the right, from the left, ...|
|动画.WinDev动画 (or "Image to animate")||The image is divided into several drawings. Each drawing is displayed successively, giving an illusion of video. |
This constant can only be used with Image controls.
Changing the type of animation
If the new type corresponds to the current type, the parameters specific to this type are re-initialized with the default parameters.
Stopping or restarting an animation
The animation can be enabled or disabled by ..动画
Images that use an animated format动画改变模式
has no effect on the images that use an animated format. Therefore, for an image in animated GIF format, the parameters are read in the file and they cannot be modified.