PC SOFT

WINDEVWEBDEV AND WINDEV MOBILE
ONLINE HELP

Home | Sign in | English UK

  • Animating an image
  • Animating a text
  • Animating a progress bar
  • Various
WINDEV
WindowsLinuxUniversal Windows 10 AppJavaReports and QueriesUser code (UMC)
WEBDEV
WindowsLinuxPHPWEBDEV - Browser code
WINDEV Mobile
AndroidAndroid Widget iPhone/iPadApple WatchUniversal Windows 10 AppWindows Mobile
Others
Stored procedures
..Animation is used to manage the animation of an image.
You can:
  • Finding out the current status of animated image or text.
  • Start or stop the animation defined for an image or for a text (start the animation of an animated GIF image for example).
This property applies to the following controls:
  • WindowsAndroidiPhone/iPadWindows Mobile Image controls,
  • WindowsWindows Mobile Button controls,
  • WindowsJava Static controls,
  • Windows Carousel controls,
  • Versions 15 and later
    Windows Progress Bar controls.
    New in version 15
    Windows Progress Bar controls.
    Windows Progress Bar controls.
WINDEV ..Animation can also be used to animate a text in a Static control.
Versions 20 and later
iPhone/iPad This property is now available for iPhone/iPad applications.
New in version 20
iPhone/iPad This property is now available for iPhone/iPad applications.
iPhone/iPad This property is now available for iPhone/iPad applications.
Example
WindowsAndroidiPhone/iPadWindows Mobile
// 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 control with the following text: "WINDEV is great"
STC_Caption1 = "WINDEV is great"
// Start the animation
STC_Static1..Animation = True
Syntax

Finding out the current status of animated image or text Hide the details

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

Starting or stopping the animation Hide the details

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

Animating an image

To animate the image displayed in the Image control, this image can be:
  • an animated image (animated Gif for example).
  • an image animated by WINDEV. In this case, the type of animation can be chosen in the description window of image ("Details" tab) or by programming with AnimationSetMode.
In a Button control, only an animated image can be associated with a button (Animated Gif, for example).
WindowsJava

Animating a text

To animate the text displayed in a Static control, you must choose the animation:
  • in the description window of static control ("Details" tab),
  • by programming with AnimationSetMode.
Windows

Animating a progress bar

In a progress bar, the animation is performed during an important variation of the value of progress bar: instead of being immediately positioned on the new value, the progress bar is incremented (or decremented) progressively to get an animation effect.
Note: this effect is specifically adapted to the circular progress bars.

Various

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