|
|
|
|
|
- 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
Manipulating Carousel controls programmatically
WINDEV allows you to manipulate a Carousel control directly by 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.
ListAdd(CAR_Carousel, "Customer", "Customer.gif")
ListAdd(CAR_Carousel, "Order", "Order.gif")
Remark: The label ("Customer", "Order" in this example) is displayed as a hover over the element in the top left corner of the Carousel control. 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.
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 Carousel controls, see Carousel control properties.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|