API:FMX.NumberBox.TNumberBox.Action
Delphi
property Action: TBasicAction read GetAction write SetAction;
C++
__property Action;
Properties
Type | Visibility | Source | Unit | Parent |
---|---|---|---|---|
property | published | FMX.NumberBox.pas FMX.NumberBox.hpp |
FMX.NumberBox | TNumberBox |
Description
Specifies the action associated with the control.
FMX.NumberBox.TNumberBox.Action inherits from FMX.Types.TFmxObject.Action. All content below this line refers to FMX.Types.TFmxObject.Action.
Specifies the action associated with the control.
Action allows an application to centralize the response to user commands. When a control is associated with an action, the action determines the appropriate properties and events of the control (such as whether the control is enabled or how it responds to an OnClick event).
If an object of the descendant from the TFmxObject class does not support actions, and when this object tries to assign a value to the Action property, the setter method for Action calls GetActionLinkClass that should return nil
. In this case, attempting to set a value to the Action property raises the following exception:
StrEActionNoSuported = 'Class %s does not support the action'