FMX.AcceleratorKey.IFMXAcceleratorKeyRegistryService.ExtractAcceleratorKey
Delphi
procedure ExtractAcceleratorKey(const AText: string; out Key: Char; out KeyIndex: Integer);
C++
virtual void __fastcall ExtractAcceleratorKey(const System::UnicodeString AText, /* out */ System::WideChar &Key, /* out */ int &KeyIndex) = 0 ;
Properties
| Type | Visibility | Source | Unit | Parent |
|---|---|---|---|---|
procedure function |
public | FMX.AcceleratorKey.pas FMX.AcceleratorKey.hpp |
FMX.AcceleratorKey | IFMXAcceleratorKeyRegistryService |
Description
Returns the accelerator character and the position index inside the text string.
ExtractAcceleratorKey processes the AText parameter string to identify any embedded accelerator key marker (the ampersand symbol).
- If
ATextcontains an accelerator character,Keyreturns the accelerator character andKeyIndexreturns the position of the accelerator character inside the text string. - If
ATextdoes not contain an acceleration character,Keycontains aNULLcharacter andKeyIndexis filled with-1.