📄 wfconng.pas
字号:
unit WfConnG;
interface
uses
Classes,dxflchrt;
type
TWfConnG = class(TdxFcConnection)
private
FStop:Boolean;
FLineWidth:SmallInt;
//TdxFcConnection的私有变量FPen:TPen;改为保护变量
procedure SetLineWidth(const Value: SmallInt);
protected
procedure Load(Stream: TStream); override;
procedure Save(Stream: TStream); override;
public
property LineWidth:SmallInt read FLineWidth write SetLineWidth;
end;
implementation
{ TWfConn }
procedure TWfConnG.Load(Stream: TStream);
begin
inherited;
Stream.ReadBuffer(FLineWidth, SizeOf(FLineWidth));
if FLineWidth=0 then
FLineWidth:=1;
FPen.Width:=FLineWidth;
end;
procedure TWfConnG.Save(Stream: TStream);
begin
inherited;
Stream.WriteBuffer(FLineWidth, SizeOf(FLineWidth));
end;
procedure TWfConnG.SetLineWidth(const Value: SmallInt);
begin
if FLineWidth<>Value then
begin
FLineWidth := Value;
FPen.Width := Value;
ConnectionChanged;
Changed;
end;
end;
end.
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -