|
|
|
|
- Overview
- Populating a Carousel control
- Assigning a value to an element
- Populating a Carousel control
- Clearing a Carousel control
- Removing elements from a Carousel control
- Properties specific to Carousel controls
Handling a Carousel control through programming
WINDEV allows you to handle a Carousel control through programming. To do so, use the variable of the Carousel control in the code. The Carousel and ListView controls use the same group of functions ( ListXXX). Populating a Carousel control Assigning a value to an element To assign an initial value to an element in a Carousel control, use ListAdd. // Add elements ListAdd(CAR_Carousel, "Customer", "Customer.gif") ListAdd(CAR_Carousel, "Order", "Order.gif")
Remark: The label ("Customer" or "Order" in this example) is displayed in the upper-left corner of the Carousel control when the element is hovered hover. Populating a Carousel control To assign values to a Carousel control, use an iteration loop to initialize all the elements in the control. For example: i is int FOR i = 1 TO 52 ListAdd(CAR_Carousel, Name[i], CarouselImage[i]) END
Clearing a Carousel control Removing elements from a Carousel control To remove all elements, use ListDeleteAll.
// Remove all elements from the Carousel control ListDeleteAll(CAR_Carousel)
Properties specific to Carousel controls The following properties are used to manipulate a Carousel control programmatically. | | Animation | Stop or resumes the animation of the Carousel control. | AnimationPeriod | Allows you to get and change the rotation speed of a Carousel control. | InitialAnimation | Allows you to configure the animation of the Carousel control when it is initialized. | ObserverOrientation | Allows you identify and change the secondary angle of a Carousel control. This secondary angle makes the Carousel control "lean". |
For a complete list of WLanguage properties that can be used with a Carousel control, see Properties associated with a Carousel control.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|