ONLINE HELP
 WINDEVWEBDEV AND WINDEV MOBILE

This content has been translated automatically.  Click here  to view the French version.
Help / WLanguage / WLanguage properties / Properties associated with windows, pages and controls
  • Animating an image
  • Animating a text
  • Animating a progress bar
  • Miscellaneous
WINDEV
WindowsLinuxJavaReports and QueriesUser code (UMC)
WEBDEV
WindowsLinuxPHPWEBDEV - Browser code
WINDEV Mobile
AndroidAndroid Widget iPhone/iPadIOS WidgetApple WatchMac Catalyst
Others
Stored procedures
The Animation property lets you manage the animation of an image or text (present in a Static Text control)..
It is possible to:
  • Know the current status of the animated image or text.
  • 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 Text controls
  • Windows Carousel controls
  • Windows Progress Bar controls.
WINDEV The Animation property also animates text in a Static Text control.
New in version 2025
AndroidiPhone/iPadMac Catalyst It is now possible to manage the animation of text present in a Label field.
Example
WindowsAndroidiPhone/iPadIOS Widget
// Initialisation du champ Image avec Flèche.GIF (GIF animé)
IMG_Image1 = "C:\Temp\Flèche.gif"
// Lancement de l'animation
IMG_Image1.Animation = True
WindowsAndroidiPhone/iPadJava
// Initialisation du champ Libellé avec le texte "WINDEV est formidable"
LIB_Libellé1 = "WINDEV est formidable"
// Lancement de l'animation
LIB_Libellé1.Animation = True
Syntax

Know the current status of the animated image or text 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:
  • Image control,
  • Static Text control.

Starting or stopping the animation Hide the details

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

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 the AnimationSetMode function.
In a Button control, only an animated image can be associated with the control (Animated GIF, for example).
WindowsAndroidiPhone/iPadJava

Animating a text

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

Animating a progress bar

In a ProgressBar, animation takes place when there is a significant change in the ProgressBar value: instead of immediately positioning itself on the new value, the ProgressBar is incremented (or decremented) progressively to obtain an animated effect.
Note: this effect is particularly suitable for circular ProgressBars.

Miscellaneous

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

Last update: 09/20/2024

Send a report | Local help