PC SOFT

ONLINE HELP
FOR WINDEV, WEBDEV AND WINDEV MOBILE

Home | Sign in | English US
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
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/iPadWindows Mobile In this version, you can only change the animation parameters used for an animated image (in an Image control).
Java In this version, you can only change the animation parameters used for an animated text (in a Static control).
Versions 20 and later
iPhone/iPad This function is now available for the iPhone/iPad applications.
Android This function is now available for the Android applications.
New in version 20
iPhone/iPad This function is now available for the iPhone/iPad applications.
Android This function is now available for the Android applications.
iPhone/iPad This function is now available for the iPhone/iPad applications.
Android This function is now available for the Android applications.
Example
Reports and QueriesWindowsAndroidiPhone/iPadWindows MobileUser code (UMC)
// Change the animation parameters of an image
IMG_Image1..Animation = True
AnimationSetParameter(IMG_Image1, "TwoWays", True)
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
Reports and QueriesWindowsAndroidiPhone/iPadWindows MobileUser code (UMC)

Changing the animation parameters of an image Hide the details

AnimationSetParameter(<Image Control> , <Parameter Name> , <Parameter Value>)
<Image Control>: Character string
Name of Image control to use.
<Parameter Name>: Constant or character string (with quotes)
Name of parameter to modify.
acpTwoWays (or "Two-Ways")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).
acpLoop (or "Loop")Read the image drawings from the first drawing to the last one continuously (this parameter is set to True by default).
acpDuration (or "Duration")Time for displaying each animation drawing in milliseconds (300 ms by default).
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)
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/iPad 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/iPad This constant is not available.
acpNbStep (or "NumberOfSteps")10 by default
"Scrolling" animation only.
AndroidiPhone/iPad This constant is not available.
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/iPad This constant is not available.
<Parameter Value>: Type of expected parameter
New value for the parameter.
Reports and QueriesWindowsJavaUser code (UMC)

Changing the animation parameters of a static control Hide the details

AnimationSetParameter(<Name of Static Control> , <Parameter Name> , <Parameter Value>)
<Name of Static Control>: Character string
Static control to use.
<Parameter Name>: Constant or character string (with quotes)
Name of parameter to modify.
acpDuration (or "Duration")Time for displaying each animation element in milliseconds (300 ms by default).
acpColor (or "Color")Flashing color. This parameter can correspond to a color constant. This color corresponds to Transparent by default.
"Flashing" animation only.
acpNbPixel (or "NumberOfPixels")Number of pixels for each scrolling step.
"Scrolling" animation only.
acpDirection (or "Direction")Scroll direction.
"Scrolling" animation only.
These parameters cannot be combined.
  • 1 (by default): from left to right
  • 2: from right to left
  • 4: from bottom to top
  • 8: from top to bottom
<Parameter Value>: Type of expected parameter
New value for the parameter.
Components
WINDEVReports and Queries wd230obj.dll
Windows Mobile wp230obj.dll
Java wd230java.jar
Android wd230android.jar
Minimum required version
  • Version 9
This page is also available for…
Comments
Click [Add] to post a comment