PC SOFT

ONLINE HELP
 WINDEVWEBDEV AND WINDEV MOBILE

Home | Sign in | English EN
  • Animating a group of controls
  • Special cases
WINDEV
WindowsLinuxUniversal Windows 10 AppJavaReports and QueriesUser code (UMC)
WEBDEV
WindowsLinuxPHPWEBDEV - Browser code
WINDEV Mobile
AndroidAndroid Widget iPhone/iPadIOS WidgetApple WatchMac CatalystUniversal Windows 10 App
Others
Stored procedures
Enables a control or a group of controls in a window. An animation can be set on the controls during this operation.
Universal Windows 10 App No animation can be played when controls are enabled.
Versions 18 and later
Universal Windows 10 App This function is now available in Windows Store apps mode.
WINDEVLinux This function is now available for WINDEV applications in Linux.
New in version 18
Universal Windows 10 App This function is now available in Windows Store apps mode.
WINDEVLinux This function is now available for WINDEV applications in Linux.
Universal Windows 10 App This function is now available in Windows Store apps mode.
WINDEVLinux This function is now available for WINDEV applications in Linux.
Versions 21 and later
Universal Windows 10 App This function is now available in Universal Windows 10 App mode.
New in version 21
Universal Windows 10 App This function is now available in Universal Windows 10 App mode.
Universal Windows 10 App This function is now available in Universal Windows 10 App mode.
Example
// 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:
animSlideDownSlide down.
animSlideRightSlide right.
animSlideLeftSlide left.
animSlideUpSlide up.
animFlipDownwardDiagonalFlip around the diagonal that goes from the top left to the bottom right.
animFlipUpwardDiagonalFlip around the diagonal that goes from the top right to the bottom left.
animFadeInFade-in animation.
animCoverFromCornersThe new element appears from the corners and covers the initial element.
animCoverDownThe new element appears from the top and covers the initial element.
animCoverRightThe new element appears from the left and covers the initial element.
animCoverLeftThe new element appears from the right and covers the initial element.
animCoverUpThe new element appears from the bottom and covers the initial element.
animCoverFromCenterThe new element appears from the center and covers the initial element.
animShrinkAndCoverFromCornersThe initial element shrinks and the new element appears from the corners.
Universal Windows 10 App This parameter is ignored. No animation can be played when the control is enabled.
<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,
  • Versions 23 and later
    the duration in a readable format (e.g., '1cs' or '10 ms').
    New in version 23
    the duration in a readable format (e.g., '1cs' or '10 ms').
    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.
Universal Windows 10 App This parameter is ignored. No animation can be played when the control is enabled.
Remarks
WINDEVReports and QueriesUser code (UMC)

Animating a group of controls

If <Control name> corresponds to a group of controls, the animation is played in the rectangle defined by the control at the top left and the one at the bottom right.
The controls that do not belong to the group of controls but found in this area will also be animated.

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.
Component: wd270obj.dll
Minimum version required
  • Version 14
This page is also available for…
Comments
Click [Add] to post a comment