ONLINE HELP
 WINDEVWEBDEV AND WINDEV MOBILE

This content has been translated automatically.  Click here  to view the French version.
Help / WLanguage / WLanguage functions / Controls, pages and windows / Animation functions / Control animations
WINDEV
WindowsLinuxJavaReports and QueriesUser code (UMC)
WEBDEV
WindowsLinuxPHPWEBDEV - Browser code
WINDEV Mobile
AndroidAndroid Widget iPhone/iPadIOS WidgetApple WatchMac Catalyst
Others
Stored procedures
Prepares the animation on a control, a group of controls or a window. Then, the animation will be played by AnimationPlay.
The principle is as follows:
  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.
Example
// 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)
Syntax
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.
Remarks
  • 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 "Enable control animations on the project" 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.
Business / UI classification: UI Code
Component: wd300obj.dll
Minimum version required
  • Version 14
This page is also available for…
Comments
Click [Add] to post a comment

Last update: 10/04/2024

Send a report | Local help