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 property 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 state of the moving image or animated text.
  • Start or stop the animation of an image or text (animated GIFs, for example).
This property can be used in the following controls:
  • Windows Image controls
  • Windows Button controls
  • WindowsJava Static Text controls
  • Windows Carousel controls
  • Windows Progress Bar controls.
WINDEV The Animation property also animates text in a Static Text control.
Example
Windows
// Initialize the Image control with Arrow.GIF (animated GIF)
IMG_Image1 = "C:\Temp\Arrow.gif"
// Start the animation
IMG_Image1.Animation = True
WindowsJava
// Initialize the Static Text control with the following text: "WINDEV is great"
STC_Caption1 = "WINDEV is great"
// Start the animation
STC_Static1.Animation = True
Syntax

Knowing the current state of the moving image or animated 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).
WindowsJava

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: 12/05/2024

Send a report | Local help