/*
Font, Name, Fonts example
To use this example, place a TComboBox and TRichEdit or TMemo on a form.
During form creation, a list of font names is loaded into the combo box. When the combo box is clicked, the memo or Rich Edit control font is set to the corresponding font name in the combo box.
*/
void __fastcall TForm1::FormCreate(TObject *Sender)
{
  for (int i = 0; i < Screen->Fonts->Count; i++)
   ComboBox1->Items->Add(Screen->Fonts->Strings[i]);
}

void __fastcall TForm1::ComboBox1Click(TObject *Sender)
{
  RichEdit1->Font->Name = ComboBox1->Text;
}

 
