|
|
|
|
|
AnimationPrepare (Function) In french: AnimationPrepare 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: - Using AnimationPrepare.
- 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.
- Using the AnimationPlay function. This function is used to switch from the "before modification" status to the "after modification" status by playing an animation.
// 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
This page is also available for…
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|