Skip to content

TWebScrollBox

Description

Below is a list of the most important properties methods and events for TWebScrollBox. TWebScrollBox is a container control that shows a scrollbar when it hosts child controls exceeding the client area of the control. TWebScrollBox is similar to a VCL TScrollBox.

Designtime Runtime

HTML template tag

The HTML tag the component can be associated with in an HTML template. Assign the ID attribute with a unique value and set the identical value to the ElementID property. Detailed information can be found in the Use of HTML templates topic.

HTML tag <DIV ID=”UniqueID”></DIV>
ElementID UniqueID

Properties for TWebScrollBox

Property Description
AutoScroll When true, the scrollbar will be automatically displayed when child controls exceed the client rectangle of the scrollbox control
BorderStyle Sets the border style of the scrollbox
ElementClassName Optionally sets the CSS classname for the label when styling via CSS is used
ElementID Optionally sets the HTML element ID for a HTML element in the form HTML file the label needs to be connected with. When connected, no new label is created but the Delphi class is connected with the existing HTML element in the form HTML file

Events for TWebScrollBox

Event Description
OnClick Event triggered when the scrollbox is clicked
OnDblClick Event triggered when the scrollbox is double-clicked