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
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
Plays an animation when a control, a group of controls or a window is modified.
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 AnimationPlay is called.
  3. Using the function AnimationPlay. This function is used to switch from the "before modification" status to the "after modification" status by playing an animation.
Ejemplo
// Prepare the animation
// The animation will be played in the window
AnimationPrepare(WIN_Customer, WIN_Customer.X, WIN_Customer.Y, ...
WIN_Customer.Width, WIN_Customer.Height)
// Modify controls
BTN_Down.Visible = False
IMG_Detail.Height += 50
WIN_Customer.Plane--
// Performs the modifications and plays the animation
AnimationPlay(animFadeIn)
Sintaxis
AnimationPlay(<Type of animation> [, <Animation duration>])
<Type of animation>: Integer constant
Type of animation to play:
animCoverDownThe new element appears from the top and covers the initial element.
animCoverFromCenterThe new element appears from the center and covers the initial element.
Android This constant is not available.
animCoverFromCornersThe new element appears from the corners and covers the initial element.
Android This constant is not available.
animCoverLeftThe new element appears from the right and covers the initial element.
animCoverRightThe new element appears from the left and covers the initial element.
animCoverUpThe new element appears from the bottom and covers the initial element.
animFadeInFade-in animation.
animFlipAxisXFlip around the horizontal axis.
Android This constant is not available.
animFlipAxisYFlip around the vertical axis.
Android This constant is not available.
animFlipDownwardDiagonalFlip around the diagonal that goes from the top left to the bottom right.
Android This constant is not available.
animFlipUpwardDiagonalFlip around the diagonal that goes from the top right to the bottom left.
Android This constant is not available.
animShrinkAndCoverFromCornersThe initial element shrinks and the new element appears from the corners.
Android This constant is not available.
animSlideDownScrolling vers le bas.
animSlideLeftSlide left.
animSlideRightSlide right.
animSlideUpSlide up.
<Animation duration>: Optional integer or optional Duration
Duration of animation in hundredths of a second. This parameter can correspond to:
  • an integer corresponding to the number of hundredths of a second,
  • a Duration variable,
  • the duration in a readable format (e.g., '1cs' or '10 ms').
We recommend that you use a short duration (up to 1 second).
The application is locked as long as the animation is not over. If the user clicks or preses a key, the animation is stopped and the controls are displayed in their final status.
Note: The number of images played is adjusted according to machine speed.. Below a given number of images per second, the image is too jerky and the animation is canceled. The number of images per second is configured by AnimationMinFPS.
Observaciones
  • An error occurs if AnimationPrepare is called twice without a call to AnimationPlay.
  • To avoid slowing down the window opening process, AnimationPrepare and AnimationPlay have no effect when they are used in the "Initialization" event of the window.
  • AnimationPrepare and AnimationPlay have no effect:
    • if "Activar animación de controles en el proyecto" is not checked. This option is available in the description window of the project, "Advanced" tab, "Control animations" button.
    • or if AnimationEnabled was not called to enable the animations.
Componente: wd300obj.dll
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