ONLINE HELP
 WINDEVWEBDEV AND WINDEV MOBILE

Help / WLanguage / WLanguage functions / Controls, pages and windows / Animation functions
WINDEV
WindowsLinuxUniversal Windows 10 AppJavaReports and QueriesUser code (UMC)
WEBDEV
WindowsLinuxPHPWEBDEV - Browser code
WINDEV Mobile
AndroidAndroid Widget iPhone/iPadIOS WidgetApple WatchMac CatalystUniversal Windows 10 App
Others
Stored procedures
AnimationSetParameter (Function)
In french: AnimationChangeParamètre
Changes one of the animation parameters used for:
  • an animated image (in an Image control),
  • an animated text (in a Static control).
AndroidiPhone/iPadMac Catalyst In this version, you can only change the animation parameters used for an animated image (in an Image control).
Example
AndroidiPhone/iPadMac Catalyst
// Change the animation parameters of an image
IMG_Image1.Animation = True
AnimationSetParameter(IMG_Image1, acpDirectionAlternate, True)
Syntax
AndroidiPhone/iPadMac Catalyst

Changing the animation parameters of an image Hide the details

AnimationSetParameter(<Image control> , <Parameter to modify> , <Parameter value>)
<Image control>: Character string
Name of the Image control to be used.
<Parameter to modify>: Constant or character string
Name of parameter to modify.
acpDirection (or "Direction")Scroll direction.
"Scrolling" animation only.
These parameters can be combined.
  • 1 (by default): from left to right
  • 2: from right to left
  • 4: from bottom to top
  • 8: from top to bottom
Example of combination:
  • 3 (2+1): left right: progressive enlargement from the center
  • 5 (4+1) from bottom to top and from right to left
AndroidiPhone/iPadMac Catalyst This constant is not available.
acpDirectionAlternate (or "DirectionAlternate")Read the image drawings from the first drawing to the last one, then from the last drawing to the first one continuously (this parameter is set to False by default).
acpDuration (or "Duration")Time for displaying each animation drawing in milliseconds (300 ms by default).
acpLoop (or "Loop")Read the image drawings from the first drawing to the last one continuously (this parameter is set to True by default).
acpNbImageX (or "NumberOfImagesX")Number of drawings found in the width of image file. Depending on the specified number, the image will be automatically divided into as many drawings as necessary (1 by default).
"Image to animate" animation only.
AndroidiPhone/iPadMac Catalyst This constant is not available.
acpNbImageY (or "NumberOfImagesY")Number of drawings found in the height of image file. Depending on the specified number, the image will be automatically divided into as many drawings as necessary (1 by default).
"Image to animate" animation only.
AndroidiPhone/iPadMac Catalyst This constant is not available.
acpNbStep (or "NumberOfSteps")10 by default
"Scrolling" animation only.
AndroidiPhone/iPadMac Catalyst This constant is not available.
acpReverse (or "Reverse")Read the image drawings from the last drawing (bottom right) to the first drawing (top left) (this parameter is set to False by default)
<Parameter value>: Type of expected parameter
New value for the parameter.
Component: wd290obj.dll
Minimum version required
  • Version 9
This page is also available for…
Comments
Click [Add] to post a comment

Last update: 05/26/2022

Send a report | Local help