[Overview][Constants][Types][Classes][Procedures and functions][Variables][Index] Reference for unit 'DB' (#fcl)


Check whether the controls are disabled


Source position: db.pas line 1680

public function TDataSet.ControlsDisabled: Boolean;

Function result

True if no events are sent to the controls


ControlsDisabled returns True if the controls are disabled, i.e. no events are propagated to the controls connected to this dataset. The TDataset.DisableControls call can be used to disable sending of data events to the controls. The sending can be re-enabled with TDataset.EnableControls. This mechanism has a counting mechanism: in order to enable sending of events to the controls, EnableControls must be called as much as DisableControls was called. The ControlsDisabled function will return true as long as the internal counter is not zero.

See also



Disable event propagation of controls



Enable event propagation of controls

Documentation generated on: May 14 2021