PC SOFT

WINDEVWEBDEV AND WINDEV MOBILE
ONLINE HELP

Home | Sign in | English UK
WINDEV
WindowsLinuxUniversal Windows 10 AppJavaReports and QueriesUser code (UMC)
WEBDEV
WindowsLinuxPHPWEBDEV - Browser code
WINDEV Mobile
AndroidAndroid Widget iPhone/iPadApple WatchUniversal Windows 10 AppWindows Mobile
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 by programming (fill, move, change of plane, etc.). These modifications are not displayed. These modifications will be displayed when using AnimationPlay.
  3. Using AnimationPlay. This function is used to switch from the "before modification" status to the "after modification" status by playing an animation.
Versions 18 and later
Android This function is now available for the Android applications.
New in version 18
Android This function is now available for the Android applications.
Android This function is now available for the Android applications.
Example
// Prepare the animation
AnimationPrepare(WIN_Customer, Details..X, Details..Y, Details..Width, Details..Height)
// Modify the controls
BTN_Down..Visible = False
Details..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 opening of windows, AnimationPrepare and AnimationPlay have no effect when they are used in the initialization process of the window.
  • AnimationPrepare and AnimationPlay have no effect:
    • if "Enable the 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.
    • or if AnimationEnabled was not called to enable the animations.
Component : wd240obj.dll
Minimum version required
  • Version 14
This page is also available for…
Comments
Click [Add] to post a comment