Vcl.Menus.TextToShortCut

From RAD Studio API Documentation
Revision as of 20:16, 11 November 2011 by L10nBot (Talk | contribs)

(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to: navigation, search

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


Code Examples

Personal tools
Translations