- 人气:
- 放大
- 缩小
- 二维码
- 赞赏
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;