delphi 如何把字体颜色保存到数据库

 时间:2024-10-15 01:40:10

1、用记事本打开dfm文件会看到类似这样的文本:object Label1: TLabelLeft = 24Top = 32Width = 140Height = 46Caption = #20445#23384#23454#20363Font.Charset = GB2312_CHARSETFont.Color = clBlueFont.Height = -35Font.Name = #24494#36719#38597#40657Font.Style = [fsBold, fsUnderline, fsStrikeOut]ParentFont = Falseend

delphi 如何把字体颜色保存到数据库

3、function File2Font(APath: string; AFont: TFont): Boolean;varFD: TFontDialog;beginResult := False;FD := TFontDialog.Create(nil);tryReadComponentResFile(APath, FD);//如果此外为nil,下面的注册去掉AFont.Assign(FD.Font);Result := True;finallyFD.Free;end;end;

delphi 如何把字体颜色保存到数据库

5、例子:procedure TForm1.Button1Click(Sender: TObject);beginFont2File(Label1.Font, 'd:\Font.fnt');//把字体保存成文件end;procedure TForm1.Button2Click(Sender: TObject);beginFile2Font( 'd:\Font.fnt', Label2.Font);//从文件里读取字体end;

delphi 如何把字体颜色保存到数据库
  • 在线如何操作PPT文档翻译工具?
  • 南昌离职后五险一金如何处理?
  • Office 365如何制作表情图标?
  • 如何给图片做成街头显示器的效果?
  • 热门搜索
    运动会200米广播稿 保险知识 dnf手游什么时候出 初一下册历史知识点 煅牡蛎的功效与作用 大姨妈什么意思 网球运动 男生什么脸型好看 众泰t600运动版 金刚藤的功效与作用