TShellTreeView在哪里? [英] Where is TShellTreeView?
问题描述
我试图在Delphi 10 Seattle中编译一个旧项目,并收到以下错误消息
I'm trying to compile an old project in Delphi 10 Seattle and get the following error message
类TShellTreeView找不到,单击取消忽略.....
class TShellTreeView not found click cancel to ignore.....
TShellTreeView
是设计时组件是 ShellCtrls
包的一部分,通常与Delphi一起提供在 Samples
包中,通常在:
TShellTreeView
is a design-time component, part of the ShellCtrls
package, that always shipped with Delphi in the Samples
packages typically found in :
C:\Users\Public\Documents\Embarcadero\Studio\xx.x\Samples\Object Pascal\VCL \
C:\Users\Public\Documents\Embarcadero\Studio\xx.x\Samples\Object Pascal\VCL\
现在看来它不再存在了。这个程序包去哪了?
Now it doesn't seem to be there anymore. Where did this package go?
推荐答案
ShellControls
设计时程序包,以及 Samples
包中的许多其他非常旧的项目,已在XE7 +中删除。
The ShellControls
design-time package, along with a number of other very old items in the Samples
package were removed in XE7+.
如果需要一个现成的设计时软件包,您仍然可以在此处的SourceForge存储库。
If you want a ready-made design-time package, you can still get the last version shipped with XE6 in the SourceForge repository here.
链接到该存储库的相关文档页面为特定于XE6的页面。特定于更高版本的Delphi的文档页面将链接到新的样本
特定于这些版本的存储库。要安装该软件包,请打开 vclshlctrls.dproj
文件,右键单击 ShellControls.bpl
软件包。 c $ c>项目经理,然后选择安装
。
The relevant documentation page that links to this repository is the XE6-specific page. Documentation pages specific to later versions of Delphi will link to the new Samples
repositories specific to those versions. To install the package, open the vclshlctrls.dproj
file, right-click the ShellControls.bpl
package in the Project Manager
and select Install
.
请记住这一点现在是一个废弃的程序包-您可能需要进行更改以将其编译为较新的版本。
Keep in mind that this is now an abandoned package - you may need to make changes to compile it in newer versions.
当前的,更新的,但是, .pas
文件已集成到VCL源中。最好的选择可能是利用这些内容制作自己的设计时软件包。为此,您需要在以下位置找到源:
The current, updated, .pas
files have, however, been integrated into the VCL source. The best option is probably to make your own design-time package out of these. To do this you will need to find the sources in :
Vcl.Shell.ShellConsts.pas
Vcl。 Shell.ShellCtrls.pas
Vcl.Shell.ShellConsts.pas
Vcl.Shell.ShellCtrls.pas
在:
[ ProgramFiles ] \Embarcadero \Studio\17.0\source\vcl\
[ProgramFiles]\Embarcadero\Studio\17.0\source\vcl\
- 接下来,将其复制到新软件包的工作目录。
- 创建一个新包(文件->新建->包)
- 将该包另存为
ShellControls.bpl
在您的工作目录中,并添加两个源文件。 -
编辑
Vcl.Shell.ShellCtrls.pas的工作副本
添加为界面
部分中的最后一项:- Next, copy these to a working directory for your new package.
- Create a new package (File -> New -> Package)
- Save the package as
ShellControls.bpl
in your working directory and add the two source files. Edit your working copy of
Vcl.Shell.ShellCtrls.pas
to add as the last item in theinterface
section :procedure Register;
-
并作为
实现$中的第一项添加c $ c>部分:
procedure Register; begin RegisterComponents('Shell Controls', [TShellListView]); RegisterComponents('Shell Controls', [TShellTreeView]); RegisterComponents('Shell Controls', [TShellChangeNotifier]); end;
- 保存软件包。右键单击项目管理器中的
.bpl
,然后选择->安装
。接受IDE通知您的所有必需参考,然后您就应该完成了。
- Save the package. Right-click, the
.bpl
in the Project Manager and select ->Install
. Accept any required references the IDE notifies you about and you should be done.
这篇关于TShellTreeView在哪里?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!