|
|
|
|
|
- Overview
- How to?
- Configuring control animations at project level
- Modifying the animation parameters for a specific control
- Configuring control animations programmatically
- Animating a sequence of actions
- Functions for managing control animations
- Remark
- Control animation properties
You have the ability to animate the controls found in a window. The following elements can be animated: - scrolling through the rows of a Table or Looper control.
- changes between months in a Calendar control,
- the DDW feature (Dim Disabled Windows),
- changes between planes,
- changes between tabs,
- control visibility changes,
- size changes of Layout control cells.
This animation can be configured: - in project options: Project options can be used to animate certain manipulations performed in certain field types. If an animation is defined for the project, it will also be used for all the corresponding controls in the project. In this case, the animations associated with the control can be modified for each control ("Style" tab of the control).
- by programming: By programming, it is possible to define more advanced animations to manage the change of state of a field. You have the ability to animate the appearance of controls in a window for example.
Note It is also possible to animate the content of certain field types. For more details, see: Configuring control animations at project level To configure control animations: - Open the project description window. To do so, go to the "Project" tab, "Project" group, and click "Description".
- On the "Advanced" tab, click "Control animations".
- In the window that appears:
- Check "Enable control animations on the project" to apply the animations.
- For each type of control, define the default animation used for the different events linked to the control. The duration of the animation can be configured for each event ("Parameters" button). The duration of an animation should not exceed 1 second.
- Validate.
Modifying the animation parameters for a specific control By default, the control animation corresponds to the animation defined at project level. However, you have the ability to modify the animation for a window control. To modify the animation of a control: - Open the description window of the control to be modified (select "Description" in the context menu).
- On the "Style" tab, choose the "Control animation" element.
- For each event that can be animated, choose (if necessary) the animation to perform as well as its parameters. The option "Defined by the project" allows you to use the animation options defined in the project description.
- Validate.
Configuring control animations programmatically Animating a sequence of actions You have the ability to animate a sequence of actions performed on the controls. Here's how it works: - Use the AnimationPrepare function.
- 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.
Functions for managing control animations The functions are as follows:
| | AnimationEnabled | Enables or disables the animations in the controls. | AnimationMinFPS | Configures the minimum number of images per second in order for the animations (transition effects) to be enabled in the controls. | AnimationPlay | Plays an animation when a control, a group of controls or a window is modified. | AnimationPlayOnControlProperty | Animates the modification of an integer property between 2 values. | AnimationPrepare | Prepares the animation on a control, a group of controls or a window. |
Several functions are used to play an animation when the status of a control (or group of controls) changes:
| | ControlEnabled | Enables a control or a group of controls in a window. An animation can be set on the controls during this operation. | ControlGrayed | Grays a control or a group of controls. An animation can be set on the controls during this operation. | ControlInvisible | Makes a control (or a group of controls) invisible in a window. An animation can be set on the controls during this operation. | ControlVisible | Makes a control (or a group of controls) visible in a window. An animation can be set on the controls during this operation. |
Remark The animations of controls as well as AnimationPrepare and AnimationPlay have no effect when the window is being opened (i.e. when the window initialization code is executed), to prevent them from slowing down. Control animation properties The properties are as follows:
| | HeightWithAnimation | The HeightWithAnimation property is used to modify the height of a cell of a Layout control with the "Resize cell" animation defined: - in the "Advanced" tab of the project description window ("Control animation" button).
- in the "Style" tab of the control or project.
| VisibleWithAnimation | The VisibleWithAnimation property is used to make a control visible or invisible via the "Appear/Disappear" animation. | WidthWithAnimation | The WidthWithAnimation property is used to modify the width of a cell of a Layout control with the "Resize cell" animation defined: - in the "Advanced" tab of the project description window ("Control animation" button).
- in the "Style" tab of the control or project.
|
This page is also available for…
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|