PC SOFT

WINDEV的在线文档

  • Principle
  • Animating a Static control
  • How do I proceed?
  • Notes
  • Programming
文档页面当前正在翻译。对于此延迟我们深表歉意。
您可以自愿地帮助我们翻译您想要的文档段落,然后只需通过以下地址与我们联系:info@cn.windev.com
产品
WinDevWebDev-服务器代码WebDev-浏览器代码WinDev Mobile报表和查询
平台
WindowsLinuxWindows MobileWindows PhoneWindows Store appsAndroidAndroid Widget iPhone/iPad
语言
JavaPHPAjax用户代码(MCU)外部语言
数据库
HFSQLHFSQL Client/Server存储过程HF 5.5OLE DBODBC本地访问

Animating a Static control

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 in two different colors alternatively.

Animating a Static control

How do I 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

Programming
Several WLanguage functions are used to manage the animated static controls. These functions are as follows:
动画改变参数Changes one of the animation parameters defined for a text in a Static control.
动画改变模式Changes the type of animation used in a Static control.
动画读取参数Reads 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:
动画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.
初始动画Used to find out the initial status of the animation in a Static control.