PC SOFT

WINDEV的在线文档

  • Animating an image
  • Animating a text
  • Animating a progress bar
  • Various
文档页面当前正在翻译。对于此延迟我们深表歉意。
您可以自愿地帮助我们翻译您想要的文档段落,然后只需通过以下地址与我们联系: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本地访问

..动画 is used to manage the animation of an image.

You can:

  • Find out the current status of the animated image or text.
  • Start or stop the animation defined for an image or for a text (start the animation of an animated GIF image for example).
This property applies to the following controls:
  • WinDev Image controls
  • WinDev Button controls
  • WinDev Static controls
  • WinDev Carousel controls
  • 15版本和更高版本
    WinDev Progress Bar controls
    15新版本
    WinDev Progress Bar controls
    WinDev Progress Bar controls

WinDev ..动画 can also be used to animate a text in a Static control.

例子
WinDev
// Initialize the Image control with Arrow.GIF (animated GIF)
IMG_Image1"C:\Temp\Arrow.gif"
// Start the animation
IMG_Image1..动画=

WinDev
// Initialize the Static control with the following text: "WinDev is great"
STC_Caption1"WinDev is great"
// Start the animation
STC_Caption1..动画=

语法

Find out the current status of the animated image or text 隐藏详细信息

<Status> = <Control Name>..动画
<Status>: Boolean
  • if the image or the text found in the control is animated,
  • otherwise.
<Control Name>: Character string (with or without quotes)
Name of the control used.

Starting or stopping the animation 隐藏详细信息

<Control Name>..动画 = <Animation Mode>
<Control Name>: Character string (with or without quotes)
Name of the control used.
<Animation Mode>: Boolean
  • to start the animation,
  • to stop the animation.

注意
WinDevWindows

Animating an image

To animate the image displayed in the Image control, this image can be:
  • an animated image (animated Gif for example).
  • an image animated by WinDev. In this case, the type of animation can be selected in the description window of the image ("Details" tab) or by programming with 动画改变模式.
In a Button control, only an animated image can be associated with a button (Animated Gif for example).

WinDevWindows

Animating a text

To animate the text displayed in a Static control, you must choose the animation:
  • in the description window of the static control ("Details" tab),
  • by programming with 动画改变模式.

WinDevWindows

Animating a progress bar

In a progress bar, the animation is performed during an important variation of the value of the progress bar: instead of being immediately positioned on the new value, the progress bar is incremented (or decremented) progressively to get an animation effect.

Note: this effect is specifically adapted to the circular progress bars.

Various

The animation is set to by default.