ONLINE HELP
 WINDEVWEBDEV AND WINDEV MOBILE

This content has been translated automatically.  Click here  to view the French version.
Help / WLanguage / WLanguage functions / Controls, pages and windows / Animation functions
  • Changing the type of animation
  • Stopping or restarting an animation
  • Images that use an animated format
WINDEV
WindowsLinuxJavaReports and QueriesUser code (UMC)
WEBDEV
WindowsLinuxPHPWEBDEV - Browser code
WINDEV Mobile
AndroidAndroid Widget iPhone/iPadIOS WidgetApple WatchMac Catalyst
Others
Stored procedures
Changes the type of animation:
  • WINDEV for an image in an Image control.
  • for a text in a Static Text control.
The parameters specific to the new type can be modified by AnimationSetParameter.
Java In this version, you can only change the type of animation used for a text in a Static Text control.
Example
// Change l'animation du champ IMG_Image1
IMG_Image1.Animation = True
AnimationSetMode(IMG_Image1, actScrolling)
// Changement des paramètres d'animation d'un champ Libellé
LIB_MonLibellé.Animation = True
AnimationSetMode(LIB_MonLibellé, actBlinking)
AnimationSetParameter(LIB_MonLibellé, acpDuration, 100)
AnimationSetParameter(LIB_MonLibellé, acpColor, DarkBlue)
Syntax
AnimationSetMode(<Control used> , <Type of animation>)
<Control used>: Control name
Name of the image control or static control to use.
<Type of animation>: Constant or character string
Animation to perform.
actBlinking (or "Blinking")The static is alternately displayed in its default color and in its flashing color.
actScrolling (or "Scrolling")The image (or the text) is displayed progressively, from the right, from the left, and so on.
Java This constant can be used with the Static Text controls only.
actWinDevAnimation (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.
Java This constant is not available.
Remarks

Changing the type of animation

If the new type corresponds to the current type, the parameters specific to this type are reinitialized with the default parameters.

Stopping or restarting an animation

The animation can be enabled or disabled with the Animation property.
WindowsUser code (UMC)

Images that use an animated format

AnimationSetMode has no effect on 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.
Component: wd300obj.dll
Minimum version required
  • Version 9
This page is also available for…
Comments
Click [Add] to post a comment

Last update: 09/24/2024

Send a report | Local help