Vcl.Menus.StripHotkey

From RAD Studio API Documentation
Jump to: navigation, search

Delphi

function StripHotkey(const Text: string): string;

C++

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

Properties

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

Description

Removes the accelerator character marker from a string.

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.

See Also


Code Examples