如何找到 Delphi 组件的来源包?
您过去可以从面板中获取安装 Delphi 组件的包。 不过,最新版本似乎没有该功能。 如何找到某个组件属于 D2007 或 D2009 下的哪个包?
You used to be able to get the package a Delphi component was installed under from the palette. That functionality doesn't seem to be in the lastest versions, though. How can I find which package a component belongs to under D2007 or D2009?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
我不知道有什么方法可以通过 Delphi IDE 来做到这一点。 但是,您可以在注册表中搜索组件名称。 例如,要查找 TBitBtn 所属的包,请打开 RegEdit 并搜索(仅在键上)TBitBtn。 TBitBtn 的条目有一个名为“Package Name”的值。 这是包的内部名称,可能仍然不完全是您正在寻找的名称。 复制“包名称”值(在我的例子中为 dclstd100.bpl),然后从顶部(这次在值上)搜索该值。 找到此条目后,您将在“数据”列中看到“友好”包名称。
I don't know of any way to do this through the Delphi IDE. However, you can do a search in your registry for the component name. For instance, to find the package that TBitBtn belongs to, open RegEdit and do a search (on Keys only) for TBitBtn. The entry for TBitBtn has a value called "Package Name". This is the internal name of the package, which is probably still not quite what you are looking for. Copy the "Package Name" value (dclstd100.bpl in my case), and do a search from the top (on Values this time) for that value. Once this entry is found you will see the "friendly" package name in the "Data" column.
在“组件|安装包”下,当您选择一个包时,“组件”按钮会显示该包中安装了哪些组件。
Under Component|Install Packages, when you select a package, the Components button shows you which components are installed in that package.