[Overview][Constants][Types][Classes][Procedures and functions][Index] Reference for unit 'DBCtrls' (#lcl)

TDBCheckBox.Create

Constructor for the class instance.

Declaration

Source position: dbctrls.pp line 680

public constructor TDBCheckBox.Create(

  TheOwner: TComponent

); override;

Arguments

TheOwner

  

Owner of the class instance.

Description

Create is the constructor for TDBCheckBox, and calls the inherited constructor on entry.

Create sets the default values for the ValueChecked and ValueUnchecked properties to the corresponding strings returned from the BoolToStr. ValueChecked is set to '-1'. ValueUnchecked is set to '0'. Change the values in ValueChecked and ValueUnchecked if other string representations are needed.

The default value for the State property is set to cbUnchecked.

Create allocates and configures the internal TFieldDataLink instance used to link the data-aware control to its Field in the underlying DataSource. The OnDataChange and OnUpdateData event handlers in the link are set to the DataChange and UpdateData methods in the control.

See also

TDBCheckBox.State

  

The check, unchecked, or grayed state for the control.

TDBCheckBox.ValueChecked

  

String representation for the check box value when the control is in its checked state.

TDBCheckBox.ValueUnchecked

  

String representation for the check box value when the control is in its unchecked state.

TDBCheckBox.DataChange

  

Updates the control display value when the linked dataset is changed.

TDBCheckBox.UpdateData

  

UpdateData - examines the State to see whether it has changed.

TFieldDataLink

  

Maintains an association between a control, an action, and a field in a linked dataset.

TCustomCheckBox.Create

  

Constructor for the class instance.

SysUtils.BoolToStr


Version 4.0 Generated 2025-05-03 Home