TShortCutList.Add function
Adds a shortcut with the specified text to the list.
Declaration
function Add(const S: string): Integer; overrideArguments
S | Text for the shortcut. |
Function result
TShortcut instance added in the method.
Description
Add is an overridden method in
TShortCutList used create
and store a TShortCut instance with the specified text. It calls the inherited
method on entry to store the string in S to the TStringList descendant, and to
capture the position for the new value in Result. A new TShortCut instance is
created using the TextToShortCut routine in the LCLProc unit. The shortcut is
stored in the Object property at the position in the return value.
Use ShortCuts to access a shortcut by its ordinal position in the list.
Use IndexOfShortCut to locate a specific TShortCut class instance in the list.
See also
An experiment, built from development snapshots. Not the official Free Pascal or Lazarus documentation.
