ObjectViewAction¶
Qualified name: delphifmx.ObjectViewAction
- class ObjectViewAction¶
Bases:
CustomViewActionA base class for actions that show a specified component when executed. FMX.StdActns.TObjectViewAction inherits from FMX.ActnList.TCustomViewAction. All content below this line refers to FMX.ActnList.TCustomViewAction. A base class for actions that show a specified component when executed. Descendants of TCustomViewAction can be associated with a component that is made visible when the action executes. TCustomViewAction extends TCustomAction declaring the component that the action shows when it executes. TObjectViewAction extends the TCustomViewAction class that defines the FmxObject property and keeps the component value that should be the TFmxObject type object in this case. Descendants of TObjectViewAction are associated with the TFmxObject type component that is made visible when the action executes. TVirtualKeyboard and TViewAction are standard actions that descend from TObjectViewAction. Contrary to ordinary actions (like TAction, TControlAction, TCustomValueRangeAction, and so on) TCustomViewAction (and its descendants) does not distribute changes in values of Caption, Enabled, Checked, GroupIndex, ShortCut, Visible, and OnExecute properties to the respective properties of clients linked with action links.
See Also
FMX.ActnList.TCustomViewAction.Component FMX.Types.TFmxObject FMX.StdActns.TObjectViewAction FMX.ActnList.TActionLink System.Actions.TContainedAction.Caption System.Actions.TContainedAction.Enabled System.Actions.TContainedAction.Checked System.Actions.TContainedAction.GroupIndex System.Actions.TContainedAction.ShortCut System.Actions.TContainedAction.Visible System.Classes.TBasicAction.OnExecute
Methods
TBasicAction.Execute() Generates an OnExecute event.
TBasicAction.Update() Provides an opportunity to execute centralized code when an application is idle.
Attributes
Indicates the client component that caused this action to execute.
ActionListHolds the action list to which the action belongs.
AutoCheckControls whether the Checked property toggles when the action executes.
CaptionRepresents the caption of the action.
CategoryGroup or category where the action belongs.
CheckedIndicates whether client controls and menu items appear checked.
ClassNameReturns the TObject.ClassName
ComObjectSpecifies the interface reference implemented by the component.
ComponentKeeps a component that executes an action and whose image becomes visible during the action execution.
ComponentCountReturns the owned component count
ComponentIndexIndicates the position of the component in its owner's Components property array.
ComponentStateDescribes the current state of the component, indicating when a component needs to avoid certain actions.
ComponentStyleGoverns the behavior of the component.
ComponentsReturns an iterator over the owned components
DesignInfoContains information used by the Form designer.
DisableIfNoHandlerIndicates whether the action's clients should be disabled if no OnExecute event handler is found.
EnabledSpecifies the enabled state for the action.
Keeps an FMX object (of the component) that executes an action and whose image becomes visible during the execution of the action.
GroupIndexIndicates a group of actions in one action list.
HelpContextKeeps the integer context ID that identifies the Help topic for the action.
HelpKeywordContains the keyword string that identifies the Help topic for the action.
HelpTypeKeeps whether to use the HelpContext or HelpKeyword property to identify the Help topic.
HideIfUnsupportedInterfaceDefines whether the UnSupported action can be visible and accessible.
HintStores the Help hint text.
ImageIndexStores an index in a list of images.
IndexSpecifies the index of the action in its action list.
NameSpecifies the name of the component as referenced in code.
ObserversIndicates the TObservers object added to the TComponent.
OwnerReturns the Component Owner
SecondaryShortCutsStores shortcuts (in addition to ShortCut) for triggering the action.
ShortCutShortcut that triggers the action.
ShortCutPressedSpecifies that the action is fired by pressing a keyboard key, not by clicking with the mouse.
StatusActionStores the status for an input field in an action.
SupportedDefines whether the action can work on the current platform and CPU architecture.
TagStores a NativeInt integral value as a part of a component.
TargetDefines the component for which the action is executed.
TextRepresents the caption of the action.
UnsupportedArchitecturesDefines the set of unsupported CPU architectures.
UnsupportedPlatformsDefines the set of unsupported OS platforms.
VCLComObjectRepresents information used internally by components that support COM.
VisibleStores whether the action representation is visible.
- ActionComponent¶
Indicates the client component that caused this action to execute.
- Execute()¶
Generates an OnExecute event.
- FmxObject¶
Keeps an FMX object (of the component) that executes an action and whose image becomes visible during the execution of the action.
- Type:
- Update()¶
Provides an opportunity to execute centralized code when an application is idle.