ONLINE HELP
 WINDEVWEBDEV AND WINDEV MOBILE

Help / WLanguage / WLanguage functions / Controls, pages and windows / Animation functions / Animation of controls
WINDEV
WindowsLinuxUniversal Windows 10 AppJavaReports and QueriesUser code (UMC)
WEBDEV
WindowsLinuxPHPWEBDEV - Browser code
WINDEV Mobile
AndroidAndroid Widget iPhone/iPadIOS WidgetApple WatchMac CatalystUniversal Windows 10 App
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. Modify 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. 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 top left corner of the rectangle where the animation will be performed.
<Y>: Optional integer
Y-coordinate (in pixels) of the top 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 "Initializing" event of the window.
  • AnimationPrepare and AnimationPlay have no effect:
    • if "Enable animation of controls on the project" is not checked. This option is available in the description window of the project, "Advanced" tab, "Animation of controls" button.
    • if AnimationEnabled has not been called to enable the animations.
Business / UI classification: UI Code
Component: wd290obj.dll
Minimum version required
  • Version 14
This page is also available for…
Comments
Click [Add] to post a comment

Last update: 05/26/2022

Send a report | Local help