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
Prepares the animation on a control, a group of controls or a window. Then, the animation will be played by AnimationPlay.
Here's how it works:
  1. Using AnimationPrepare.
  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.
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
AnimationPrepare(<Element> [, <X> , <Y> , <Width> , <Height>])
<Element>: Character string
Name of the control or window where the animation will be performed.
<X>: Optional integer
X-coordinate (in pixels) of the upper-left corner of the rectangle where the animation will be performed.
<Y>: Optional integer
Y-coordinate (in pixels) of the upper-left corner of the rectangle where the animation will be performed.
<Width>: Optional integer
Width (in pixels) of the rectangle where the animation will be performed.
<Height>: Optional integer
Height (in pixels) of the rectangle where the animation will be performed.
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.
    • if AnimationEnabled has not been called to enable the animations.
Clasificación Lógica de negocio / UI: Código UI
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