[Overview][Types][Classes][Procedures and functions][Variables][Index] |
Converts the textual representation for a shortcut to its TShortCut value.
Source position: lclproc.pas line 92
function TextToShortCut( |
const ShortCutText: string |
):TShortCut; |
ShortCutText |
|
Text converted to a shortcut value in the routine. |
TShortcut value for the specified text.
TextToShortCut is a TShortcut function used to convert the string representation for a shortcut (or accelerator) to a TShortCut instance.
ShortCutText contains the text which represents a key or a key combination used as a shortcut in an application. It can contain optional key modifier(s) as well as a key caption. For example:
Ctrl+V Ctrl+Alt+Del ^V Shift+F9 Alt+G Meta+Q
Recognized key modifiers include:
Alt Ctrl or ^ Meta Shift
Recognized key captions include the standard key caps for your keyboard and the localized versions of the following:
The return value is a TShortCut instance with the numeric value used to represent both the Shift/Ctrl/Alt modifier and the key code for the shortcut. It consists of the Shift and Key values OR'd together.
Use TextToShortCutRaw to convert a non-localized string to it TShortCut equivalent.
Use ShortCutToText to reverse the process.
|
Converts the non-localized textual representation for a shortcut to a TShortCut value. |
|
|
Returns the localized textual representation for a shortcut value. |
|
|
Converts a shortcut value to its text representation without localization. |
|
Version 3.2 | Generated 2024-02-25 | Home |