PC SOFT

WINDEV的在线文档

产品
WinDevWebDev-服务器代码WebDev-浏览器代码WinDev Mobile报表和查询
平台
WindowsLinuxWindows MobileWindows PhoneWindows Store appsAndroidAndroid Widget iPhone/iPad
语言
JavaPHPAjax用户代码(MCU)外部语言
数据库
HFSQLHFSQL Client/Server存储过程HF 5.5OLE DBODBC本地访问

Changes one of the animation parameters used for:
  • an animated image (in an Image control),
  • an animated text (in a Static control).

例子
WinDev用户代码(MCU)
// Change the animation parameters of an image
动画改变参数IMG_Image1"TwoWays"

WinDev用户代码(MCU)
// Change the animation parameters of a static control
AnimationSetMode(STC_MyStatic, "Blinking")
AnimationSetParameter(STC_MyStatic, "Duration", 100)
AnimationSetParameter(STC_MyStatic, "Color", DarkBlue)

语法
WinDev用户代码(MCU)

Changing the animation parameters of an image 隐藏详细信息

动画改变参数(<Name of Image Control> , <Name of Parameter> , <Parameter Value>)
<Name of Image Control>: Character string
Name of the Image control to use.
<Name of Parameter>: Constant or character string (with quotes)
Name of the parameter to modify.
动画参数.往返 (or "Two-Ways")Read the image drawings from the first drawing to the last one, then from the last drawing to the first one continuously (this parameter is set to by default).
动画参数.循环 (or "Loop")Read the image drawings from the first drawing to the last one continuously (this parameter is set to by default).
动画参数.持续时间 (or "Duration")Time for displaying each animation drawing in milliseconds (300 ms by default)
动画参数.反向读取 (or "Reverse")Read the image drawings from the last drawing (bottom right) to the first drawing (top left) (this parameter is set to by default)
动画参数.水平图片数量 (or "NumberOfImagesX")Number of drawings found in the width of the image file. Depending on the specified number, the image will be automatically divided into as many drawings as necessary (1 by default).
"Image to animate" animation only.

动画参数.垂直图片数量 (or "NumberOfImagesY")Number of drawings found in the height of the image file. Depending on the specified number, the image will be automatically divided into as many drawings as necessary (1 by default).
"Image to animate" animation only.

动画参数.步骤数量 (or "NumberOfSteps")10 by default
"Scrolling" animation only.

动画参数.滚动方向 (or "Direction")Scroll direction.
"Scrolling" animation only.
These parameters can be combined.
  • 1 (by default): from left to right
  • 2: from right to left
  • 4: from bottom to top
  • 8: from top to bottom
Example of combination:
  • 3 (2+1): left right: progressive enlargement from the center
  • 5 (4+1) from bottom to top and from right to left
<Parameter Value>: Type of the expected parameter
New value for the parameter.
WinDev用户代码(MCU)

Changing the animation parameters of a static control 隐藏详细信息

动画改变参数(<Name of Static Control> , <Name of Parameter> , <Parameter Value>)
<Name of Static Control>: Character string
Name of the static control to use.
<Name of Parameter>: Constant or character string (with quotes)
Name of the parameter to modify.
动画参数.持续时间 (or "Duration")Time for displaying each animation element in milliseconds (300 ms by default)
动画参数.颜色 (or "Color")Flashing color. This parameter can correspond to a color constant. This color corresponds to 透明 by default.
"Flashing" animation only.
动画参数.像素数量 (or "NumberOfPixels")Number of pixels for each scrolling step.
"Scrolling" animation only.
动画参数.滚动方向 (or "Direction")Scroll direction. "Scrolling" type Animation only.
These parameters cannot be combined.
  • 1 (by default): from left to right
  • 2: from right to left
  • 4: from bottom to top
  • 8: from top to bottom
<Parameter Value>: Type of the expected parameter
New value for the parameter.

组件
WinDev wd200obj.dll