本文整理自网络,侵删。
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;
相关阅读 >>
winapi 字符及字符串函数(8): ischarupper - 是否是个大写字母
Delphi 将strings合并成一个逗号分隔的字符串,用于sql
Delphi xe5 程序中标识win max android ios程序代码分别实现
更多相关阅读请进入《Delphi》频道 >>