如何复制一个对象 如何复制一个对象 , 复制后的对象与源对象相互独立?Assign 方法怎么用? 解决方案 » 免费领取超大流量手机卡,每月29元包185G流量+100分钟通话, 中国电信官方发货 要自己写代码的,覆盖一个Assign方法的! procedure Assign(Source: TPersistent); override;procedure TFont.Assign(Source: TPersistent);begin if Source is TFont then begin Lock; try TFont(Source).Lock; try FontManager.AssignResource(Self, TFont(Source).FResource); Color := TFont(Source).Color; if PixelsPerInch <> TFont(Source).PixelsPerInch then Size := TFont(Source).Size; finally TFont(Source).Unlock; end; finally Unlock; end; Exit; end; inherited Assign(Source);end; TPersistent中的是个需方法,没用的!这个方法必须字类继承的! 一个内存映像问题 delphi中如何将一个access表的数据导入到另一个表中? 继续前面memo换行问题 [急]关于将TIcon存入数据库后失真的问题! VFP表格的问题。郁闷!!! 如何实现这样的多线程? 急急急!!! 千分(金)征集编程思路,SPCOMM同时和100个单片机通讯的问题. string如何转pchar ++++偶快毕业了,现在在找毕业设计的题目,那位老兄帮帮出个题!难度适中就可以了!谢谢!!++++ 关于上传和下载 webbrowser无法POST?
procedure Assign(Source: TPersistent); override;
procedure TFont.Assign(Source: TPersistent);
begin
if Source is TFont then
begin
Lock;
try
TFont(Source).Lock;
try
FontManager.AssignResource(Self, TFont(Source).FResource);
Color := TFont(Source).Color;
if PixelsPerInch <> TFont(Source).PixelsPerInch then
Size := TFont(Source).Size;
finally
TFont(Source).Unlock;
end;
finally
Unlock;
end;
Exit;
end;
inherited Assign(Source);
end;
这个方法必须字类继承的!