Delphi 从文件中存取组件.rar

时间:2022-07-30 03:29:52
【文件属性】:
文件名称:Delphi 从文件中存取组件.rar
文件大小:7KB
文件格式:RAR
更新时间:2022-07-30 03:29:52
Delphi源码-文件操作 Delphi 从文件中存取组件,实例如图所示的效果中,通过菜单命令,可清除窗口中的控件,这个控件信息保存在文件中,清除了文件内容,也就清除了控件:   for I := self.ComponentCount - 1 downto 0 do   begin    if self.Components[I].ClassName='TMainMenu' then continue;    if self.Components[I].ClassName='TMenuItem' then continue;    if self.Components[I].ClassName='TOpenDialog' then continue;    if self.Components[I].ClassName='TSaveDialog' then continue;    self.Components[I].Free;   end;
【文件预览】:
codesc.net
----从文件中存取组件()
--------Project2.res(876B)
--------Unit1.ddp(51B)
--------Unit1.dcu(6KB)
--------Unit1.dfm(1KB)
--------Project2.dpr(194B)
--------Project2.cfg(406B)
--------Project2.dof(2KB)
--------Unit1.pas(2KB)

网友评论