Skip to content



Below is a list of the most important properties methods and events for TWebCheckBox, TWebCheckBox represents a two-state checkbox or three-state checkbox and is similar to a VCL TCheckBox.

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 TWebCheckBox

Property Description
Alignment Sets whether the checkbox is shown left or right from the caption
Caption Sets or gets the text for the checkbox
Checked Sets or gets the checkbox state
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
ShowFocus When true, the border color changes when the control has focus
State Allows to get or set the checkbox state in three states: checked, unchecked, grayed.
TabOrder Sets the tab order of the control
TabStop When true, the focus is turned to the control when pressing tab

Events for TWebCheckBox

Property Description
OnClick Event triggered when the checkbox is clicked