|
|
|
|
ControlEnabled (Function) In french: ChampActif Enables a control or a group of controls in a window. An animation can be set on the controls during this operation.
// Enables the GR_Name group of controls ControlEnabled(GR_Name, animFadeIn, 200)
Syntax
ControlEnabled(<Control name> [, <Type of animation> [, <Animation duration>]])
<Control name>: Name of the control or name of a group of controls Name of the control or group of controls to enable. <Type of animation>: Optional Integer constant Type of animation to play: | | animCoverDown | The new element appears from the top and covers the initial element. | animCoverFromCenter | The new element appears from the center and covers the initial element. | animCoverFromCorners | The new element appears from the corners and covers the initial element. | animCoverLeft | The new element appears from the right and covers the initial element. | animCoverRight | The new element appears from the left and covers the initial element. | animCoverUp | The new element appears from the bottom and covers the initial element. | animFadeIn | Fade-in animation. | animFlipDownwardDiagonal | Flip around the diagonal that goes from the top left to the bottom right. | animFlipUpwardDiagonal | Flip around the diagonal that goes from the top right to the bottom left. | animShrinkAndCoverFromCorners | The initial element shrinks and the new element appears from the corners. | animSlideDown | Slide down. | animSlideLeft | Slide left. | animSlideRight | Slide right. | animSlideUp | Slide up. |
<Animation duration>: Optional integer or optional Duration Duration of animation in hundredths of a second. This parameter can correspond to: - an integer corresponding to the number of hundredths of a second,
- a Duration variable,
- the duration in a readable format (e.g., '1cs' or '10 ms').
We recommend that you use a short duration (up to 1 second). The application is locked as long as the animation is not over. If the user clicks or preses a key, the animation is stopped and the controls are displayed in their final status. Remarks Special cases - ControlEnabled has no effect if the control or the group of controls is not grayed out.
- The State property can also be used to enable controls. This property cannot be used to play an animation during this operation. In WINDEV Mobile, the State and ControlEnabled properties are equivalent.
This page is also available for…
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|