Help / WLanguage / WLanguage properties / Properties associated with windows, pages and controls
  • Animating an image
  • Animating a text
  • Animating a progress bar
  • Miscellaneous
WindowsLinuxUniversal Windows 10 AppJavaReports and QueriesUser code (UMC)
WindowsLinuxPHPWEBDEV - Browser code
AndroidAndroid Widget iPhone/iPadIOS WidgetApple WatchMac CatalystUniversal Windows 10 App
Stored procedures
The Animation property animates an image.
You can:
  • Determine if the image or text is animated.
  • Start or stop the animation of an image or text (animated GIFs, for example).
This property can be used in the following controls:
  • WindowsAndroidiPhone/iPadIOS WidgetMac Catalyst Image controls
  • Windows Button controls
  • WindowsAndroidiPhone/iPadIOS WidgetMac CatalystJava Static controls
  • Windows Carousel controls
  • Windows Progress Bar controls.
WINDEV The Animation property also animates text in a Static control.
WindowsAndroidiPhone/iPadIOS Widget
// Initialize the Image control with Arrow.GIF (animated GIF)
IMG_Image1 = "C:\Temp\Arrow.gif"
// Start the animation
IMG_Image1.Animation = True
// Initialize the Static control with the following text: "WINDEV is great"
STC_Caption1 = "WINDEV is great"
// Start the animation
STC_Static1.Animation = True

Determining if the image or text is animated Hide the details

<Status> = <Control used>.Animation
<Status>: Boolean
  • True if the image or text in the control is animated,
  • False otherwise.
<Control used>: Control name
Name of the control used.

Starting or stopping the animation Hide the details

<Control used>.Animation = <Animation mode>
<Control used>: Control name
Name of the control used.
<Animation mode>: Boolean
  • True to start the animation,
  • False to stop the animation.

Animating an image

The image to be animated in the Image control can be:
  • an animated image (animated GIF, for example).
  • an image animated by WINDEV. In this case, the type of animation can be defined in the Image control description window ("Details" tab) or programmatically with AnimationSetMode.
In a Button control, only an animated image can be associated with the control (Animated GIF, for example).

Animating a text

To animate the text displayed in a Static control, you must choose the animation:
  • in the Static control description window ("Details" tab),
  • programmatically with the AnimationSetMode function.

Animating a progress bar

In a progress bar, the animation starts when the progress value changes: the position is not immediately set on the new value, but it increases (or decreases) progressively to get an animation effect.
Remark: this effect is adapted to circular progress bars.


The animation is set to True by default.
Minimum version required
  • Version 9
This page is also available for…
Click [Add] to post a comment

Last update: 10/31/2022

Send a report | Local help