Vcl.Menus.TextToShortCut
From RAD Studio API Documentation
Delphi
function TextToShortCut(Text: string): TShortCut;
C++
extern DELPHI_PACKAGE System::Classes::TShortCut __fastcall TextToShortCut(System::UnicodeString Text);
Contents |
Properties
| Type | Visibility | Source | Unit | Parent |
|---|---|---|---|---|
| function | public | Vcl.Menus.pas Vcl.Menus.hpp |
Vcl.Menus | Vcl.Menus |
Description
Creates a menu shortcut from a text string.
Call TextToShortCut to create a menu shortcut from a descriptive string. For example, an application can allow users to specify the value of a shortcut in an edit box control, and then call TextToShortCut to create a menu shortcut for the value entered by the user.
Note: TextToShortCut executes slowly. When possible, use the ShortCut function to create a menu shortcut instead.
See Also