RAD Studio VCL Reference
ContentsIndex
PreviousUpNext
Menus.GetHotkey Function

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

Pascal
function GetHotkey(const Text: string): string;
C++
AnsiString GetHotkey(const AnsiString Text);

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. 

 

Copyright(C) 2009 Embarcadero Technologies, Inc. All Rights Reserved.
What do you think about this topic? Send feedback!