Sign in Join
FPDoc Onlineexperiment

TDBCheckBox.DataChange procedure

Member of TDBCheckBoxprotectedIn unit DBCtrls

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

Declaration

pascal
procedure DataChange(Sender: TObject)

Arguments

Sender

Object for the event notification.

Description

DataChange is used to perform actions needed when the linked dataset for the control has been changed. In TDBCheckBox, this requires setting the State property for the control. DataChange calls the GetFieldCheckState method to get the value for the State property.

DataChange is assigned in the constructor as the OnDataChange event handler in the internal TFieldDataLink instance for the control. It is temporarily unassigned (when used) prior to calling GetFieldCheckState, and reassigned prior to exit.

See also

An experiment, built from development snapshots. Not the official Free Pascal or Lazarus documentation.