GetCharsetValues (C++)
Description
The following example uses the GetCharsetValues procedure to fill a string list with the names of all the available character set constants. This string list can then be used to allow you select a character set. Here is the callback that adds the character sets to the string list.
Code
TStringList *CharSetList;
void __fastcall TForm1::AddCharacterSet(const UnicodeString S)
{
CharSetList->Add(S);
}
void __fastcall TForm1::Button1Click(TObject *Sender)
{
CharSetList = new TStringList();
GetCharsetValues(AddCharacterSet);
CharSetList->Sort();
ListBox1->Items = CharSetList;
delete CharSetList;
}
Uses
- Vcl.Graphics.GetCharsetValues ( fr | de | ja )