字体,大小,颜色和粗体啦之类的。越详细越好
所有信息都写到个memo里或有什么办法保存起来,下次还是用这次的设置
所有信息都写到个memo里或有什么办法保存起来,下次还是用这次的设置
解决方案 »
- 怎样在程序中控制fastreport报表中memo的坐标?
- 请问idhttp或者webbrowser如何登陆百度
- 关于面向对象的数据库程序设计,很头疼
- 数据库连接错误捕捉问题,急等
- pop3邮件编码的问题
- 关于修改数据库的问题
- 请问Delphi如何做WinSock2 SPI程序?高分相赠!
- 点击最小化按钮问题,参与者有分!!!
- 为什么tqrdbtext只显示当前记录的内容?而不是所有记录?谁来帮帮我吧!
- 如何用Delphi开发Proxy,急,谢谢
- 请教如何用 Exe + Dll 来封装客户端程序的框架,详细点,希望大家讨论
- 求lzw压缩算法的可运行demo代码(帖子内已经附上 lzw压缩单元文件)
private
FColor: TColor;
FPixelsPerInch: Integer;
FNotify: IChangeNotifier;
procedure GetData(var FontData: TFontData);
procedure SetData(const FontData: TFontData);
protected
procedure Changed; override;
function GetHandle: HFont;
function GetHeight: Integer;
function GetName: TFontName;
function GetPitch: TFontPitch;
function GetSize: Integer;
function GetStyle: TFontStyles;
function GetCharset: TFontCharset;
procedure SetColor(Value: TColor);
procedure SetHandle(Value: HFont);
procedure SetHeight(Value: Integer);
procedure SetName(const Value: TFontName);
procedure SetPitch(Value: TFontPitch);
procedure SetSize(Value: Integer);
procedure SetStyle(Value: TFontStyles);
procedure SetCharset(Value: TFontCharset);
public
constructor Create;
destructor Destroy; override;
procedure Assign(Source: TPersistent); override;
property FontAdapter: IChangeNotifier read FNotify write FNotify;
property Handle: HFont read GetHandle write SetHandle;
property PixelsPerInch: Integer read FPixelsPerInch write FPixelsPerInch;
published
property Charset: TFontCharset read GetCharset write SetCharset;
property Color: TColor read FColor write SetColor;
property Height: Integer read GetHeight write SetHeight;
property Name: TFontName read GetName write SetName;
property Pitch: TFontPitch read GetPitch write SetPitch default fpDefault;
property Size: Integer read GetSize write SetSize stored False;
property Style: TFontStyles read GetStyle write SetStyle;
end;
//--- if FontDialog1.Execute then
begin
memo1.Lines.Add( FontDialog1.Font.Name );
memo1.Lines.Add( IntToStr(FontDialog1.Font.Size) );
.....
end;
如:
//保存
if FontDialog1.Execute then
begin
with FontDialog1.Font do
begin
//集合类型
if (fsBold in Style) then
memo1.Lines.Add('FontBold=1');
//枚举类型
if (Pitch = fpFixed) then
memo1.Lines.Add('FontPitch=3');
end;
end;