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

TDBMemo.EditingDone

Called when editing has been completed in the control.

Declaration

Source position: dbctrls.pp line 1025

public procedure TDBMemo.EditingDone; override;

Description

EditingDone is an overridden method in TDBMemo. It is called when the user has finished editing in the control, and ensures that changes are applied to the field in the linked data set.

In TDBMemo, it calls the UpdateRecord method in the field data link when it can be modified and has been placed in edit mode. The inherited method is called to signal the OnEditingDone event handler (when assigned).

If the field cannot be modified in the linked data set, or the data set is not in Edit mode, the Reset method in the field data link is called. This will signal the OnDataChange event handler (when assigned), but the linked data set is not updated.

EditingDone is called from the KeyUpAfterInterface method when the VK_RETURN key code is handled, and when the focus is changed to another control.

See also

TFieldDataLink.CanModify

  

True if the linked field is capable of being modified.

TFieldDataLink.Editing

  

True if the linked field is being edited.

TFieldDataLink.Reset

  

Checks whether the link is active, calls the OnDataChange event handler then sets IsModified to False.

TFieldDataLink.OnDataChange

  

Event handler signalled when the field data link has been changed.

TDataLink.UpdateRecord

TCustomEdit.EditingDone

  

Enforces the setting in the ReadOnly property when editing is finished in the control.

TControl.OnEditingDone

  

Event handler signalled when editing is completed for the control.


Version 4.0 Generated 2025-05-03 Home