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

TEditUndo.UpdateTarget

Updates the enabled state for the action.

Declaration

Source position: stdactns.pas line 79

public procedure TEditUndo.UpdateTarget(

  Target: TObject

); override;

Arguments

Target

  

Object instance with the values examined in the method.

Description

UpdateTarget is an overridden method used to update values in the action based on settings in the specified Target control. UpdateTarget re-implements the method introduced in the ancestor class.

Target is the object instance with values examined in the method. It is cast to the TCustomEdit type used in the Control property, and its CanUndo method is called to get the value assigned to the Enabled property.

UpdateTarget is called from the UpdateActions method in TCustomForm when actions and action lists are updated during an application idle state.

See also

TCustomAction.Enabled

  

Enabled - whether this action is able to be used (default is True).

TCustomEdit.CanUndo

  

Indicates whether the last change can be reverted in the control.

TBasicAction.UpdateTarget


Version 4.0 Generated 2025-05-03 Home