Delphi RichEdit1 设置字体


本文整理自网络,侵删。

 
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 安卓如何获取当前系统语言

Delphi操作access

Delphi2010下安装控件Delphi

Delphi timer定时器使用

Delphi winapi: getparent - 获取指定窗口的父窗口句柄

Delphi 2009 泛型容器单元(generics.collections)[5]: tobject...<t> 系列

Delphi 调用单元unit代码

Delphi copyfileprogressbar 拷贝文件显示进度条

Delphi tstringlist indexof find 查找字符串

Delphi android 程序名称在哪里设置?

更多相关阅读请进入《Delphi》频道 >>



打赏

取消

感谢您的支持,我会继续努力的!

扫码支持
扫码打赏,您说多少就多少

打开支付宝扫一扫,即可进行扫码打赏哦

分享从这里开始,精彩与您同在

评论

管理员已关闭评论功能...