Carousel

TsgcHTMLComponent_Carousel — render a Bootstrap image slideshow with indicators, controls, autoplay and slide or fade transitions, in Delphi, C++ Builder and .NET.

An image slideshow built on the Bootstrap carousel. Add slides with an image, caption and description, set autoplay and transition, then read the HTML property.

Component class

TsgcHTMLComponent_Carousel

Renders

Bootstrap 5 carousel markup

Languages

Delphi, C++ Builder, .NET

Create it, add slides, render it

Push slides with AddSlide(image, caption, description), set Autoplay, Interval and Transition, then read HTML.

Key properties & methods

The members you reach for most often.

Slides

AddSlide(aImageSrc, aCaption, aDescription) appends a slide; Items (TsgcHTMLCarouselItems) exposes ImageSrc, Caption, Description and Active per slide.

ShowIndicators draws the dot indicators and ShowControls draws the previous/next arrows.

Autoplay

Autoplay cycles slides automatically and Interval sets the delay between them in milliseconds.

Transition

Transition (TsgcHTMLCarouselTransition) switches between ctSlide and ctFade; Dark uses the dark control variant.

Sizing

Height fixes the slide height with cover-fit cropping; CarouselID sets the container id.

Output

HTML returns the full carousel markup — serve it, or assign it to a page template's body content.

Keep exploring

All sgcHTML ComponentsBrowse the full feature matrix of 60+ components.
Download Free TrialThe 30-day trial ships the 60.HTML demo projects.
PricingSingle, Team and Site licenses with full source code.

Ready to Get Started?

Download the free trial and start building web UIs in Delphi, C++ Builder and .NET.