PC SOFT

WINDEV的在线文档

  • Overview
  • Filling a carousel
  • Initializing an element
  • Filling a carousel
  • Clearing a carousel
  • Deleting the elements from a carousel
  • Properties specific to the Carousel controls
文档页面当前正在翻译。对于此延迟我们深表歉意。
您可以自愿地帮助我们翻译您想要的文档段落,然后只需通过以下地址与我们联系: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本地访问

Handling a Carousel control by programming

Overview
WinDev enables you to handle a Carousel control by programming. To do so, use the variable of the Carousel control in the code.

The Carousel control and the ListView control use the same group of functions (ListXXX).

Filling a carousel

Initializing an element

To initialize a carousel element, use 列表添加.

// Add elements
列表添加CAR_Carousel"Customer""Customer.gif"
列表添加CAR_Carousel"Order""Order.gif"

Note: The caption ("Customer", "Order" in this example) is displayed in the top left corner of the carousel when the element is hovered by the mouse cursor.

Filling a carousel

To initialize a carousel, all you have to do is use an iteration loop to initialize all the control elements. For example:

i整数型
对于i1直到52
列表添加CAR_CarouselNamei】,CarouselImagei】)
结束

Clearing a carousel

Deleting the elements from a carousel

To delete all the elements, use 列表删除全部.
// Delete all the elements from the carousel
列表删除全部CAR_Carousel

Properties specific to the Carousel controls
The following properties are used to manage the characteristics of a Carousel control by programming.
观察者角度Enables you to find out and modify the secondary angle of a Carousel control. This secondary angle makes the Carousel control "lean"
动画Enables you to stop or resume the animation of the Carousel control
初始动画Enables you to configure the animation of the Carousel control when it is initialized
动画时间段Enables you to find out and modify the rotating speed of a Carousel control

To find out the entire list of WLanguage properties that can be used with a Carousel control, see Properties associated with a Carousel control.