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 / Animación de controles
  • Overview
  • How to?
  • Configuring control animations at project level
  • Modifying the animation parameters for a specific control
  • Configuring control animations programmatically
  • Animating a sequence of actions
  • Functions for managing control animations
  • Remark
  • Control animation properties
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
Overview
You have the ability to animate the controls found in a window. The following elements can be animated:
  • scrolling through the rows of a Table or Looper control.
  • changes between months in a Calendar control,
  • the DDW feature (Dim Disabled Windows),
  • changes between planes,
  • changes between tabs,
  • control visibility changes,
  • size changes of Layout control cells.
This animation can be configured:
  • in project options Project options can be used to animate certain operations performed in certain field types. If an animation is defined for the project, it will also be used for all the corresponding controls in the project. In this case, the animations associated with the control can be modified for each control ("Style" tab of the control).
  • by programming: By programming, it is possible to define more advanced animations to manage the change of state of a field. You have the ability to animate the appearance of controls in a window for example.
Note It is also possible to animate the content of certain field types. For more details, see:
How to?

Configuring control animations at project level

To configure control animations:
  1. Open the project description window. To do so, go to the "Proyecto" tab, "Proyecto" group, and click "Descripción".
  2. On the "Advanced" tab, click "Animación de controles".
  3. In the window that appears:
    • Check "Activar animación de controles en el proyecto" to apply the animations.
    • For each type of control, define the default animation used for the different events linked to the control. The duration of the animation can be configured for each event ("Parameters" button). The duration of an animation should not exceed 1 second.
  4. Validate.

Modifying the animation parameters for a specific control

By default, the control animation corresponds to the animation defined at project level. However, you have the ability to modify the animation for a window control.
To modify the animation of a control:
  1. Open the description window of the control to be modified (select "Description" in the context menu).
  2. On the "Style" tab, choose the "Control animation" element.
  3. For each event that can be animated, choose (if necessary) the animation to perform as well as its parameters. The option "Defined by the project" allows you to use the animation options defined in the project description.
  4. Validate.
Configuring control animations programmatically

Animating a sequence of actions

You have the ability to animate a sequence of actions performed on the controls. Here's how it works:
  1. Use the AnimationPrepare function.
  2. Modifying the controls in the code (fill, move, change of plane, etc.). These modifications are not displayed. These modifications will be displayed when using AnimationPlay.
  3. Using the AnimationPlay function. This function is used to switch from the "before modification" status to the "after modification" status by playing an animation.

Functions for managing control animations

The functions are as follows:
AnimationEnabledEnables or disables the animations in the controls.
AnimationMinFPSConfigures the minimum number of images per second in order for the animations (transition effects) to be enabled in the controls.
AnimationPlayPlays an animation when a control, a group of controls or a window is modified.
AnimationPlayOnControlPropertyAnimates the modification of an integer property between 2 values.
AnimationPreparePrepares the animation on a control, a group of controls or a window.
Several functions are used to play an animation when the status of a control (or group of controls) changes:
ControlEnabledEnables a control or a group of controls in a window. An animation can be set on the controls during this operation.
ControlGrayedGrays a control or a group of controls. An animation can be set on the controls during this operation.
ControlInvisibleMakes a control (or a group of controls) invisible in a window. An animation can be set on the controls during this operation.
ControlVisibleMakes a control (or a group of controls) visible in a window. An animation can be set on the controls during this operation.

Remark

The animations of controls as well as AnimationPrepare and AnimationPlay have no effect when the window is being opened (i.e. when the window initialization code is executed), to prevent them from slowing down.

Control animation properties

The properties are as follows:
HeightWithAnimationLa propiedad HeightWithAnimation se utiliza para modificar la altura de una celda de un control Disposición con la animación "Redimensionar celda" definida:
  • en la pestaña "Avanzado" de la ventana de descripción del proyecto (botón "Animación del control").
  • en la pestaña "Estilo" del control o proyecto.
VisibleWithAnimationEn VisibleWithAnimation se utiliza para hacer visible o invisible un control mediante la animación "Aparecer/Desaparecer".
WidthWithAnimationLa propiedad WidthWithAnimation se utiliza para modificar la anchura de una celda de un control Disposición con la animación "Redimensionar celda" definida:
  • en la pestaña "Avanzado" de la ventana de descripción del proyecto (botón "Animación del control").
  • en la pestaña "Estilo" del control o proyecto.
Versión mínima requerida
  • Versión 14
Esta página también está disponible para…
Comentarios
Haga clic en [Agregar] para publicar un comentario

Última modificación: 27/03/2025

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