PC SOFT

ONLINE HELP
FOR WINDEV, WEBDEV AND WINDEV MOBILE

Home | Sign in | English US
  • 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
WINDEV
WindowsLinuxUniversal Windows 10 AppJavaReports and QueriesUser code (UMC)
WEBDEV
WindowsLinuxPHPWEBDEV - Browser code
WINDEV Mobile
AndroidAndroid Widget iPhone/iPadApple WatchUniversal Windows 10 AppWindows Mobile
Others
Stored procedures
Handling a Carousel control by programming
Overview
WINDEV allows 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 are using the same group of functions (ListXXX).
Filling a carousel

Initializing an element

To initialize a carousel element, use ListAdd.
// Add elements
ListAdd(CAR_Carousel, "Customer", "Customer.gif")
ListAdd(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 is int
FOR i = 1 TO 52
ListAdd(CAR_Carousel, Name[i], CarouselImage[i])
END
Clearing a carousel

Deleting the elements from a carousel

To delete all the elements, use ListDeleteAll.
// Delete all the elements from the carousel
ListDeleteAll(CAR_Carousel)
Properties specific to the Carousel controls
The following properties are used to manage the characteristics of a Carousel control by programming.
ObserverOrientationUsed to find out and modify the secondary angle of a Carousel control. This secondary angle makes the Carousel control "lean"
AnimationUsed to stop or resume the animation of the Carousel control
InitialAnimationUsed to configure the animation of the Carousel control when it is initialized
AnimationPeriodUsed 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.
Minimum required version
  • Version 11
Comments
Click [Add] to post a comment