AYUDA EN LÍNEA
 WINDEVWEBDEV Y WINDEV MOBILE

Este contenido se ha traducido automáticamente.  Haga clic aquí  para ver la versión en inglés.
Ayuda / WLanguage / Funciones WLanguage / Controles, páginas y ventanas / Funciones de animación
WINDEV
WindowsLinuxJavaReportes y ConsultasCódigo de Usuario (UMC)
WEBDEV
WindowsLinuxPHPWEBDEV - Código Navegador
WINDEV Mobile
AndroidWidget Android iPhone/iPadIOS WidgetApple WatchMac Catalyst
Otros
Procedimientos almacenados
Changes one of the animation parameters used for:
  • an animated image (in an Image control),
  • an animated text (in a Static Text control).
Java In this version, you can only change the animation parameters used for an animated text (in a Static Text control).
Ejemplo
WindowsCódigo de Usuario (UMC)
// Change animation parameters for an Image control
IMG_Image1.Animation = True
AnimationSetParameter(IMG_Image1, acpDirectionAlternate, True)
// Change the animation parameters of a Static Text control
STC_MyStatic.Animation = True
AnimationSetMode(STC_MyStatic, actBlinking)
AnimationSetParameter(STC_MyStatic, acpDuration, 100)
AnimationSetParameter(STC_MyStatic, acpColor, DarkBlue)
Sintaxis
WindowsCódigo de Usuario (UMC)

Changing the animation parameters of an image Ocultar los detalles

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 (default): stretching from left to right
  • 2: stretching from right to left
  • 4: stretching from bottom to top
  • 8: stretching from top to bottom
Example of combination:
  • 3 (2+1): left right: gradual widening from the center
  • 5 (4+1) from bottom to top and from right to left
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")Amount of time for displaying each drawing of the animation 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.
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.
acpNbStep (or "NumberOfSteps")10 by default
"Scrolling" animation only.
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.

Changing the animation parameters of a static control Ocultar los detalles

AnimationSetParameter(<Static Text control> , <Parameter to modify> , <Parameter value>)
<Static Text control>: Character string
Name of the Static Text control to be used.
<Parameter to modify>: Constant or character string
Name of parameter to modify.
acpColor (or "Color")Blinking color. This parameter can correspond to a color constant. This color corresponds to Transparent by default.
"Blinking" animation only.
acpDirection (or "Direction")Scroll direction.
"Scrolling" animation only.
These parameters cannot be combined.
  • 1 (default): dequeue to the left
  • 2: Dequeue to the right
  • 4: scroll down
  • 8: scrolls upwards
acpDuration (or "Duration")Time for displaying each animation element in milliseconds (300 ms by default).
Novedad versión 2025
acpLoop (or "Loop")
Dequeue continuously (this parameter is True by default).
"Scrolling" animation only.
Note: This feature is only available from version 2025 Update 1.
Novedad versión 2025
acpNbLoopMax (or "NombreBoucleMax")
Number of loops for continuous dequeue (0 unlimited number of loops).
"Scrolling" animation only.
Note: This feature is only available from version 2025 Update 1.
acpNbPixel (or "NumberOfPixels")Number of pixels for each scrolling step.
"Scrolling" animation only.
<Parameter value>: Type of expected parameter
New value for the parameter.
Componente: wd300obj.dll
Versión mínima requerida
  • Versión 9
Esta página también está disponible para…
Comentarios
Haga clic en [Agregar] para publicar un comentario

Última modificación: 25/03/2025

Señalar un error o enviar una sugerencia | Ayuda local