Sign in Join
FPDoc Onlineexperiment

TShortCutList class

In unit ActnList

A list of shortcuts (accelerator keys) for actions in an action list.

Declaration

pascal
TShortCutList = class(TStringList)

Inheritance

  1. TShortCutList
  2. TStringList
  3. TObject

Description

TShortCutList is a TStringList descendant used to store text and TShortCut class instances for accelerator keys used on actions. It provides additional properties and methods needed to maintain the TShortCut instances in the list.

The overridden Add method stores both the caption text and a TShortCut instance needed for an accelerator key. The caption is stored in the Lines property. The Objects property is used to store the TShortCut value.

Use the indexed ShortCuts property to access a TShortCut value in Objects by its ordinal position.

TShortCutList is the type used to implement the SecondaryShortCuts property in TCustomAction.

See also

Properties

ShortCutspublicProvides indexed, read-only access to the TShortCut instances in the list by their ordinal position.

Methods

AddpublicAdds a shortcut with the specified text to the list.
IndexOfShortCutpublicGets the ordinal position in the list for the specified TShortCut class instance.

Inherited

From TObject (42)

AfterConstruction BeforeDestruction CheckDisposed ClassInfo ClassName ClassNameIs ClassParent ClassType CleanupInstance Create DefaultHandler DefaultHandlerStr Destroy Dispatch DispatchStr Disposed DisposeOf Equals FieldAddress Free FreeInstance GetDisposed GetHashCode GetInterface GetInterfaceByStr GetInterfaceEntry GetInterfaceEntryByStr GetInterfaceTable GetInterfaceWeak GetLastCastErrorInfo InheritsFrom InitInstance InstanceSize MethodAddress MethodName newinstance QualifiedClassName SafeCallException StringMessageTable SystemHasExtendedRTTI ToString UnitName

An experiment, built from development snapshots. Not the official Free Pascal or Lazarus documentation.