如何改变MEMO里的字体类型
在RICHEDIT里能轻松实现。
void __fastcall TForm1::ComboBox1Change(TObject *Sender){ RichEdit1-> SelAttributes-> Name=ComboBox1-> Text;}//---------------------------------------void __fastcall TForm1::RichEdit1SelectionChange(TObject *Sender){ ComboBox1->ItemIndex=ComboBox1->Items->IndexOf(RichEdit1->SelAttributes->Name); }
void __fastcall TForm1::ComboBox1Change(TObject *Sender){ Memo1->Font->Name=ComboBox1->Text;}//---------------------------------------void __fastcall TForm1::Memo1Change(TObject *Sender){ ComboBox1->ItemIndex=ComboBox1->Items->IndexOf(Memo1->Font->Name);}