TSearchAction.UpdateTarget procedure
Updates the Enabled property for the action based on values in the Target control.
Declaration
procedure UpdateTarget(Target: TObject); overrideArguments
Target | Object instance that is the target control for the action. |
Description
UpdateTarget is an overridden method in
TSearchAction.
It implements the empty method introduced in the ancestor class.
In TSearchAction, UpdateTarget sets the value for the Enabled property in the action. Enabled is set to True when Target has a Text property that is not an empty string (''). It, in turn, determines the Enabled state for any client controls linked to the action. It also determines the return value from the Execute method; when Enabled is False, the return value from Execute is also False.
See also
An experiment, built from development snapshots. Not the official Free Pascal or Lazarus documentation.
