[Overview][Constants][Types][Classes][Procedures and functions][Index] |
Constructor for the class instance.
Source position: dbctrls.pp line 680
public constructor TDBCheckBox.Create( |
TheOwner: TComponent |
); override; |
TheOwner |
|
Owner of the class instance. |
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.
|
The check, unchecked, or grayed state for the control. |
|
|
String representation for the check box value when the control is in its checked state. |
|
|
String representation for the check box value when the control is in its unchecked state. |
|
|
Updates the control display value when the linked dataset is changed. |
|
|
UpdateData - examines the State to see whether it has changed. |
|
|
Maintains an association between a control, an action, and a field in a linked dataset. |
|
|
Constructor for the class instance. |
|
Version 4.0 | Generated 2025-05-03 | Home |