本文整理自网络,侵删。
procedure TForm1.Button1Click(Sender: TObject);begin RichEdit1.Font.Name := ComboBox1.Text;end;
procedure TForm1.FormCreate(Sender: TObject);
var i : Integer;begin for i := 0 to Screen.Fonts.Count - 1 do ComboBox1.Items.Add(Screen.Fonts.Strings[i]);// ComboBox1.Items := Screen.Fonts; // This is another way to do it. RichEdit1.Lines.Text := 'www.delphitop.com';
end;
相关阅读 >>
Delphi idhashmessagedigest 获取文件md5
Delphi中format与formatdatetime函数详解
更多相关阅读请进入《Delphi》频道 >>