PC SOFT

ONLINE HELP
FOR WINDEV, WEBDEV AND WINDEV MOBILE

Home | Sign in | English US
  • Principle
  • Animating a Static control
  • How to proceed?
  • Notes
  • Programming
WINDEV
WindowsLinuxUniversal Windows 10 AppJavaReports and QueriesUser code (UMC)
WEBDEV
WindowsLinuxPHPWEBDEV - Browser code
WINDEV Mobile
AndroidAndroid Widget iPhone/iPadApple WatchUniversal Windows 10 AppWindows Mobile
Others
Stored procedures
Principle
Two methods can be used to animate a static control:
  • scrolling caption: the caption scrolls from one side of the control to the other one. For example:
  • blinking caption: the caption is displayed alternatively in two different colors.
Animating a Static control

How to proceed?

To animate a Static control:
  1. Display the description window of the static control ("Description" from the popup menu of the static control).
  2. In the "Details" tab, configure the animation options. Choose the type of animation and configure the associated options. The options depend on the selected animation mode.
For example, if the scrolling animation is selected, you have the ability to specify:
  • The rate of refresh between each move.
  • The number of pixels corresponding to a move.
  • The scroll direction.
For example, if the blinking animation is selected, you have the ability to specify:
  • The rate of refresh between each blink.
  • The blinking color of the caption. Two colors are required to make a caption blink:
    • the standard color of the caption.
    • the blinking color of the caption. If this color is transparent, the caption will be displayed every other time.

Notes

  • You cannot animate a static in RTF format or a "Soft Shade" static.
  • A animation of a static control is visible at runtime only.
  • An animated static is limited to 1024 bytes.
  • The animation does not operate anymore if functions for text formatting are used (gFontBold, gFontSize, gFontItalic, gFontUnderlined).
Programming
Several WLanguage functions are used to manage the animated static controls. These functions are as follows:
AnimationSetParameterChanges one of the animation parameters defined for a text in a Static control.
AnimationSetModeChanges the type of animation used in a Static control.
AnimationGetParameterReads the value of an animation parameter defined for an image in a Static control.
Several WLanguage properties are used to manage the animated static controls. These properties are as follows:
AnimationUsed to find out the current status of the animation in a Static control and to start/stop an animation in an animated Static control.
InitialAnimationUsed to find out the initial status of the animation in a Static control.
Minimum required version
  • Version 9
Comments
Click [Add] to post a comment