[Overview][Constants][Types][Classes][Procedures and functions][Index] |
Performs actions needed when the control is clicked.
Source position: dbctrls.pp line 676
protected procedure TDBCheckBox.DoOnChange; override; |
DoOnChange is an overridden method in TDBCheckBox. It ensures that the internal TFieldDataLink is notified of a change to the control value.
If the OnDataChange event handler has been assigned for the field data link, its Edit, Modified, and UpdateRecord methods are called to store the new value for the control. If the linked dataset cannot be edited, the GetFieldCheckState method is called to get the checked state value stored to the State property.
The OnDataChange event handler in the data link is temporarily unassigned prior to updating the field value. The handler is reassigned when the actions have been completed.
DoOnChange calls the inherited method to signal the OnEditingDone and OnChange event handlers in ancestor classes.
|
The check, unchecked, or grayed state for the control. |
|
|
GetFieldCheckState - returns the check box state for the current field. |
|
|
Edit - if the field can be modified, performs inherited Edit and shows editing status. |
|
|
Updates the class when the linked dataset enters an edit state. |
|
|
Signals the OnEditingDone and OnChange event handlers (when assigned). |
|
Version 4.0 | Generated 2025-05-03 | Home |