THYActionItemDef

Overview

Base class for all control repository items. This class is used to represent an item that can connect to an Action.

Location


Properties


Action

Gets or sets link to the action that will be linked to the control created in the host form by a toolbar or menu controller. Properties such as caption, shortcut, image bitmap, etc. must be properly assigned to the action.

property Action: TBasicAction read write

Collection    (declared in THYRepositoryCollectionItem)

Gets reference to the THYRepositoryCollection that holds this item.

property Collection: THYRepositoryCollection read write

Instance Methods


constructor Create  override    (declared in THYRepositoryCollectionItem)

Creates a new instance of the class.

constructor Create(aCollection: TCollection)

Parameters:

  • aCollection: Reference to a parent collection.

Assign  override

Assigns an action from the source object to this object.

procedure Assign(Source: TPersistent)

Parameters:

  • Source: Reference to the source object.

SetAction  protected virtual

Sets the link to an action.

procedure SetAction(const Value: TBasicAction)

Parameters:

  • Value: Reference to an action.