本文整理自网络,侵删。
设置前先获得Memo的字体属性并设置给FontDialog 然后再设置MEMO的字体属性 //设置Memo的字体属性procedure TForm1.mni_FontClick(Sender: TObject);begin with TFontDialog.Create(nil) do begin Font:=Memo1.Font; Options := [fdApplyButton]; if Execute() then Memo1.Font:=Font; end;end;
来源:https://www.cnblogs.com/xe2011/p/3372992.html
相关阅读 >>
Delphi2010获取鼠标指向窗口的位置及鼠标在窗口内的相对位置坐标
Delphi 中将tmemorystream转换为'string'
更多相关阅读请进入《Delphi》频道 >>