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

TDBCheckBox.DoOnChange

Performs actions needed when the control is clicked.

Declaration

Source position: dbctrls.pp line 669

protected procedure TDBCheckBox.DoOnChange; override;

Description

DoOnChange is an overridden method in TDBCheckBox. It ensures that the internal TFieldDataLink is notified of a change to the control value. The Edit, Modified, and UpdateRecord methods in the field data link are called to store the new value for the control. If the linked dataset cannot be edited, the GetFieldCheckState is called to get the value stored in the State property.

DoOnChange calls the inherited method prior to exit.

Remark: No actions are performed in the method when the internal TFieldDataLink does not have an assigned OnDataChange event handler.

See also

TDBCheckBox.State

  

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

TDBCheckBox.GetFieldCheckState

  

GetFieldCheckState - returns the checkbox state for the current field.

TFieldDataLink.Edit

  

Edit - if the field can be modified, performs inherited Edit and shows editing status.

TFieldDataLink.Modified

  

Updates the class when the linked dataset enters an edit state.

TButtonControl.DoOnChange

  

Signals the OnEditingDone and OnChange event handlers (when assigned).

TDataLink.UpdateRecord