|
|
|
|
- Principle
- Animating a Static control
- How to?
- Remarks
- Programming
Animating a Static control
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: - Display the description window of the static control ("Description" from the popup menu of the static control).
- 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).
Several WLanguage functions are used to manage the animated static controls. These functions are as follows: Several WLanguage properties are used to manage the animated static controls. These properties are as follows: | | Animation | Used to find out the current status of the animation in a Static control and to start/stop an animation in an animated Static control. | InitialAnimation | Used to find out the initial status of the animation in a Static control. |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|