|
|
|
|
|
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. Here's how it works: - 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.
AnimationPrepare(FEN_Client, FEN_Client.X, FEN_Client.Y, ...
FEN_Client.Largeur, FEN_Client.Hauteur)
BTN_BAS.Visible = False
IMG_Detail.Hauteur += 50
FEN_Client.Plan--
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…
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|