[Overview][Constants][Types][Classes][Procedures and functions][Variables][Index] |
[Properties (by Name)] [Methods (by Name)] [Events (by Name)]
A list of shortcuts (accelerator keys) for actions in an action list.
Source position: actnlist.pas line 135
type TShortCutList = class(TStringList) |
||
public |
||
function Add(); override; |
|
Adds a shortcut with the specified text to the list. |
function IndexOfShortCut(); |
|
Gets the ordinal position in the list for the specified TShortCut class instance. |
|
Provides indexed, read-only access to the TShortCut instances in the list by their ordinal position. |
|
end; |
|
A list of shortcuts (accelerator keys) for actions in an action list. |
|
| | ||
| | ||
| | ||
| | ||
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.
|
SecondaryShortCuts - a stringlist containing shortcuts. |
|
Version 3.2 | Generated 2024-02-25 | Home |