RAD Studio VCL Reference
ContentsIndex
PreviousUpNext
Menus.StripHotkey Function

Removes the accelerator character marker from a string.

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

StripHotkey removes the & escape char that marks the accelerator characters in Text. When the current locale is Asian, this function also looks for and removes any parentheses around the accelerator, which are common in Asian locales. 

 

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