Vcl.Menus.GetHotkey

From RAD Studio API Documentation
Jump to: navigation, search

Delphi

function GetHotkey(const Text: string): string;

C++

extern DELPHI_PACKAGE System::UnicodeString __fastcall GetHotkey(const System::UnicodeString Text);

Properties

Type Visibility Source Unit Parent
function public
Vcl.Menus.pas
Vcl.Menus.hpp
Vcl.Menus Vcl.Menus

Description

Returns the last character in a string marked with an ampersand (&).

GetHotKey searches Text, starting at the end, for a character that is identified as an accelerator key by a preceding ampersand (&). If it locates a character marked with an ampersand, GetHotkey returns that character. Otherwise, it returns an empty string.

See Also