[Overview][Types][Classes][Procedures and functions][Index] |
Updates the Enabled property for the action based on values in the Target control.
Source position: stdactns.pas line 297
public procedure TSearchAction.UpdateTarget( |
Target: TObject |
); override; |
Target |
|
Object instance that is the target control for the action. |
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.
|
Executes the action for the specified Target control. |
|
|
Updates the internal Control to the value in NewControl. |
|
|
Enabled - whether this action is able to be used (default is True). |
|
Version 4.0 | Generated 2025-05-03 | Home |