ContainedActionList#

Qualified name: delphivcl.ContainedActionList

class ContainedActionList#

Bases: Component

The base class for list of actions, without the published properties. Implement TContainedActionList to work with common properties for all GUI application frameworks. Actions lists the actions maintained by the action list. The ActionCount property returns the number of actions in the list. OnStateChange sends a notification when the State changes.

Methods

BindMethodsToEvents

Connects methods to component events if they are named using the following pattern: Prefix_ComponentName_EventName.

Create

Creates an instance of TContainedActionList.

Destroy

Destroys an instance of TContainedActionList.

EnumByCategory

Calls the specified procedure (TEnumActionListEvent or TEnumActionListRef) once for every action of the list in the specified category.

ExecuteAction

Generates an OnExecute event.

GetChildren

Calls a specified method for each child action of the action list.

GetEnumerator

Returns a TContainedActionList enumerator, a TActionListEnumerator reference that enumerates the actions in the list.

GetParentComponent

Returns the parent of a component.

HasParent

Indicates whether the component has a parent to handle its filing.

UpdateAction

Generates an OnUpdate event.

Attributes

ActionCount

Indicates the number of actions in the action list.

Actions

<Delphi indexed property Actions of type TContainedActionList at 211416EE2E0>

ClassName

Returns the TObject.ClassName

ComObject

Specifies the interface reference implemented by the component.

ComponentCount

Returns the owned component count

ComponentIndex

Indicates the position of the component in its owner's Components property array.

ComponentState

Describes the current state of the component, indicating when a component needs to avoid certain actions.

ComponentStyle

Governs the behavior of the component.

Components

Returns an iterator over the owned components

DesignInfo

Contains information used by the Form designer.

Name

Specifies the name of the component as referenced in code.

Observers

Indicates the TObservers object added to the TComponent.

OnStateChange

<Delphi property OnStateChange of type TContainedActionList at 211414BA2D0>

Owner

Returns the Component Owner

State

Indicates whether the actions in the action list respond when the user triggers a client object.

Tag

Stores a NativeInt integral value as a part of a component.

VCLComObject

Represents information used internally by components that support COM.

ActionCount#

Indicates the number of actions in the action list. ActionCount indicates how many actions are contained in the action list.

Actions#

<Delphi indexed property Actions of type TContainedActionList at 211416EE2E0>

BindMethodsToEvents(prefix)#

Connects methods to component events if they are named using the following pattern: Prefix_ComponentName_EventName. Example: def handle_button1_OnClick(Sender): pass The function returns a list of tuples. Each tuple contains the name of the component, the name of the event and the method object assigned to the event. Note that the prefix parameter is optional and will default to “handle_”.

ComponentCount#

Returns the owned component count

Components#

Returns an iterator over the owned components

Create(AOwner: Component)#

Creates an instance of TContainedActionList. This creator is inherited from TComponent, see TComponent.Create for more information.

Destroy()#

Destroys an instance of TContainedActionList. This destructor is inherited from TComponent, see TComponent.Destroy for more information.

EnumByCategory(Proc: EnumActionListEvent, Category: string, IncludeSubCategory: Boolean) Boolean#

Calls the specified procedure (TEnumActionListEvent or TEnumActionListRef) once for every action of the list in the specified category. IncludeSubCategory determines whether actions in subcategories are included (True) or not (False) in the loop of calls. Proc, an instance of either TEnumActionListEvent or TEnumActionListRef, can set its Done argument to True to stop the loop of calls prematurely. Calls the specified procedure (TEnumActionListEvent or TEnumActionListRef) once for every action of the list in the specified category. IncludeSubCategory determines whether actions in subcategories are included (True) or not (False) in the loop of calls. Proc, an instance of either TEnumActionListEvent or TEnumActionListRef, can set its Done argument to True to stop the loop of calls prematurely.

ExecuteAction(Action: BasicAction) Boolean#

Generates an OnExecute event. Typically, applications do not call the ExecuteAction method. Instead, the action indicated by the Action parameter calls ExecuteAction in response to a user command. It is possible, however, to call ExecuteAction to generate an OnExecute event even though no client control has been triggered. ExecuteAction invokes the OnExecute event handler for the action list. It returns True if the event handler handles the action, False otherwise.

GetChildren(Proc: GetChildProc, Root: Component)#

Calls a specified method for each child action of the action list. GetChildren is used by the component streaming system. For each action in the action list, GetChildren calls the method passed in Proc. The actions are passed to the callback in the order that they are loaded or saved by the component streaming system.

GetEnumerator()#

Returns a TContainedActionList enumerator, a TActionListEnumerator reference that enumerates the actions in the list. To process all actions, read Current from the enumerator within a ?while MoveNext do? loop.

GetParentComponent()#

Returns the parent of a component.

HasParent()#

Indicates whether the component has a parent to handle its filing.

OnStateChange#

<Delphi property OnStateChange of type TContainedActionList at 211414BA2D0>

Owner#

Returns the Component Owner

State#

Indicates whether the actions in the action list respond when the user triggers a client object. State can be one of the constants defined in the TActionListState type: asNormal, asSuspended, and asSuspendedEnabled.

UpdateAction(Action: BasicAction) Boolean#

Generates an OnUpdate event. Typically, applications do not call the UpdateAction method. Instead, the action indicated by the Action parameter calls UpdateAction when informed by the application that it can update itself. It is possible, however, to call UpdateAction to generate an OnUpdate event even though this has not been initiated by the application. UpdateAction invokes the OnUpdate event handler for the action list. It returns True if the event handler updates the action, False otherwise.