ONLINE HELP
 WINDEVWEBDEV AND WINDEV MOBILE

Help / Developing an application or website / Controls, windows and pages / Controls: Available types / Static control
  • Principle
  • Animating a Static control
  • How to?
  • Remarks
  • Programming
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
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?

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.

Remarks

  • RTF and text with a "Blurred shadow" cannot be animated.
  • The animation of a Static control is only visible at runtime.
  • Animated text 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:
AnimationGetParameterReads the value of an animation parameter defined for an image in a Static control.
AnimationSetModeChanges the type of animation used in a Static control.
AnimationSetParameterChanges one of the animation parameters defined for a text 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 version required
  • Version 9
Comments
Click [Add] to post a comment

Last update: 06/28/2022

Send a report | Local help