ONLINE HELP
 WINDEVWEBDEV AND WINDEV MOBILE

Help / Developing an application or website / Controls, windows and pages / Controls: Available types / Static Text control
  • Principle
  • Animating a Static Text control
  • How to?
  • Remarks
  • Programming
WINDEV
WindowsLinuxJavaReports and QueriesUser code (UMC)
WEBDEV
WindowsLinuxPHPWEBDEV - Browser code
WINDEV Mobile
AndroidAndroid Widget iPhone/iPadIOS WidgetApple WatchMac Catalyst
Others
Stored procedures
Principle
Two methods can be used to animate a Static Text control in WINDEV and WINDEV Mobile:
  • scrolling text: The text scrolls within the control in a given direction.
  • blinking text: The text alternates between two colors.
Animating a Static Text control

How to?

To animate a Static Text control:
  1. Open the text description window (select "Description" in the context menu).
  2. In the "Details" tab, go to "Animation" and set the animation options. Choose the type of animation and configure the associated options. The options depend on the selected animation mode.
For scrolling text, you can define the following options:
  • Refresh rate.
  • Number of pixels the text moves each time it is refreshed.
  • Scroll direction. Text can scroll:
    • from left to right,
    • from right to left,
    • from bottom to top,
    • from top to bottom.
  • New in version 2025
    If the animation must repeat, and if so, the number of loops.
    Note: This feature is only available from version 2025 Update 1.
For blink text, you can define the following options:
  • Blink rate.
  • Text blinking color. Two colors are required to achieve the text blinking effect:
    • standard text color.
    • text blinking color. If this color is transparent, the text will appear every other time.

Remarks

  • RTF and text with a "Blurred shadow" cannot be animated.
  • The animation of a Static Text control is only visible at runtime.
  • Animated text is limited to 1024 bytes.
  • The animation does not work anymore if functions for text formatting are used (gFontBold, gFontSize, gFontItalic, gFontUnderlined).
  • New in version 2025
    You can also make long text scroll automatically in a Static Text control. This option is particularly useful for Static Text controls displaying dynamic data. For more details, see Auto-scrolling text.
    Note: This feature is only available from version 2025 Update 1.
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 Text control.
AnimationSetModeChanges the type of animation used in a Static Text control.
AnimationSetParameterChanges one of the animation parameters defined for a text in a Static Text 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 Text control and to start/stop an animation in an animated Static Text control.
InitialAnimationUsed to find out the initial status of the animation in a Static Text control.
Minimum version required
  • Version 9
This page is also available for…
Comments
Click [Add] to post a comment

Last update: 06/18/2025

Send a report | Local help