Vcl.Touch.Keyboard.TKeyCaptions.SetCaption
Delphi
procedure SetCaption(const AName, AValue: string; const ALanguage: string = '');
C++
void __fastcall SetCaption(const System::UnicodeString AName, const System::UnicodeString AValue, const System::UnicodeString ALanguage = System::UnicodeString());
Properties
Type | Visibility | Source | Unit | Parent |
---|---|---|---|---|
procedure function |
public | Vcl.Touch.Keyboard.pas Vcl.Touch.Keyboard.hpp |
Vcl.Touch.Keyboard | TKeyCaptions |
Description
Sets the caption value for an element from the Items list.
Use SetCaption to set the caption value for an element in the Items list.
The element that is searched for is identified by the AName and ALanguage parameters. ALanguage is optional and defaults to the empty string . Once the element is found, its caption is set the same as the AValue parameter.
Note: If the key with the AName and ALanguage parameters is not found, then a new key is added.