TDBCheckBox.Create constructor
Constructor for the class instance.
Declaration
constructor Create(TheOwner: TComponent); overrideArguments
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
An experiment, built from development snapshots. Not the official Free Pascal or Lazarus documentation.
