PC SOFT

WINDEV的在线文档

  • Changing the type of animation
  • Stopping or restarting an animation
  • Images that use an animated format
产品
WinDevWebDev-服务器代码WebDev-浏览器代码WinDev Mobile报表和查询
平台
WindowsLinuxWindows MobileWindows PhoneWindows Store appsAndroidAndroid Widget iPhone/iPad
语言
JavaPHPAjax用户代码(MCU)外部语言
数据库
HFSQLHFSQL Client/Server存储过程HF 5.5OLE DBODBC本地访问

Changes the type of animation:
  • of an image in an Image control.
  • of a text in a Static control.
The parameters specific to the new type can be modified by 动画改变参数.

例子
WinDev用户代码(MCU)
// Changes the animation of the IMG_Image1 control
动画改变模式IMG_Image1"Scrolling"

WinDev用户代码(MCU)
// Change the animation parameters of a static control
动画改变模式STC_MyStatic"Blinking"
动画改变参数STC_MyStatic"Duration"100
动画改变参数STC_MyStatic"Color"深蓝色

语法
动画改变模式(<Control Name> , <Type of Animation>)
<Control Name>: Character string (with or without quotes)
Name of the image control or static control to use.
<Type of Animation>: Constant or character string (with quotes)
Animation to perform.
动画参数.闪烁 (or "Blinking")The static is alternately displayed in its default color and in its flashing color.
动画参数.滚动 (or "Scrolling")The image (or the caption) is progressively displayed, from the right, from the left, ...

动画.WinDev动画 (or "Image to animate")The image is divided into several drawings. Each drawing is displayed successively, giving an illusion of video.
This constant can only be used with Image controls.

注意

Changing the type of animation

If the new type corresponds to the current type, the parameters specific to this type are re-initialized with the default parameters.

Stopping or restarting an animation

The animation can be enabled or disabled by ..动画.

WinDev用户代码(MCU)

Images that use an animated format

动画改变模式 has no effect on the images that use an animated format. Therefore, for an image in animated GIF format, the parameters are read in the file and they cannot be modified.

组件
WinDev wd200obj.dll