PC SOFT

ONLINE HELP
FOR WINDEV, WEBDEV AND WINDEV MOBILE

Home | Sign in | English US
  • Changing the type of animation
  • Stopping or restarting an animation
  • Images that use an animated format
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
Changes the type of animation:
  • for an image in an Image control.
  • for a text in a Static control.
The parameters specific to the new type can be modified by AnimationSetParameter.
Windows Mobile In this version, you can only change the type of animation used for an image in an Image control.
Java In this version, you can only change the type of animation used for a text in a Static control.
Example
Reports and QueriesWindowsWindows MobileUser code (UMC)
// Changes the animation of the IMG_Image1 control
IMG_Image1..Animation = True
AnimationSetMode(IMG_Image1, "Scrolling")
Reports and QueriesWindowsJavaUser code (UMC)
// Change the animation parameters of a static control
STC_MyStatic..Animation = True
AnimationSetMode(STC_MyStatic, "Blinking")
AnimationSetParameter(STC_MyStatic, "Duration", 100)
AnimationSetParameter(STC_MyStatic, "Color", DarkBlue)
Syntax
AnimationSetMode(<Control Name> , <Type of Animation>)
<Control Name>: Character string (with or without quotes)
Name of the image control or static control to use.
<Type of Animation>: Constant or character string (with quotes)
Animation to perform.
actBlinking (or "Blinking")The static is alternately displayed in its default color and in its flashing color.
Windows Mobile This constant is not available.
actScrolling (or "Scrolling")The image (or the caption) is progressively displayed, from the right, from the left, ...
Windows Mobile This constant can only be used with Image controls.
Java This constant can be used with the Static 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 re-initialized with the default parameters.

Stopping or restarting an animation

The animation can be enabled or disabled by ..Animation.
Reports and QueriesWindowsWindows MobileUser code (UMC)

Images that use an animated format

AnimationSetMode has no effect on the 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.
Components
WINDEVReports and Queries wd230obj.dll
Windows Mobile wp230obj.dll
Java wd230java.jar
Minimum required version
  • Version 9
This page is also available for…
Comments
Click [Add] to post a comment