在Delphi 2007中使用第三方组件 [英] Using third party components in Delphi 2007

查看:57
本文介绍了在Delphi 2007中使用第三方组件的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

可能重复:
如何在Delphi中安装类或类似组件的单元2007年?

  1. 任何人都请告诉我如何使用第三方组件(例如DELPHI 2007中的ALPHA皮肤).
  2. 如何安装?

推荐答案

在这里,我将尝试向您介绍如何安装 AlphaSkins 软件包,但这是安装软件包的常用方法.对于Delphi 2007已有描述.

Here I'll try to describe you how to install the AlphaSkins package, but this is the common way how to install packages. It's described for Delphi 2007.

关于您对AlphaSkins的特定要求;您可以按照 zip 归档文件中包含的 Install.txt 文件进行操作,也可以按照以下更详细的工作流程进行操作:

About your specific request for AlphaSkins; you can follow the Install.txt file included in the zip archive or you might follow this more detailed workflow:

  • 在任何需要的地方创建目录,我已经创建了 c:\ Program Files(x86)\ CodeGear \ RAD Studio \ 5.0 \ lib \ AlphaSkins \
  • zip 存档的全部内容解压缩到该目录中
  • 打开Delphi并转到 Tools \ Options 菜单,在打开的对话框中转到 Environment Options \ Delphi Options \ Library-Win32 并单击浏览按钮 ... Library path 编辑框旁边;目录对话框将弹出
  • 将您新创建的目录插入到 Directory 对话框的编辑框中,单击 Add 按钮,然后通过单击 OK 按钮
  • 从菜单 View \ Project Manager
  • 显示 Project Manager 窗口
  • 现在使用 File \ Open ... 菜单项打开运行时程序包,然后打开文件 c:\ Program Files(x86)\ CodeGear \ RAD Studio \ 5.0 \ lib \ AlphaSkins\ D2007 \ acnt2007_R.dpk
  • 转到 Project Manager 窗口,在 acnt2007_R.bpl 树视图项上单击鼠标右键,然后选择 Compile 弹出菜单项,关闭编译对话框
  • 现在使用 File \ Open ... 菜单项打开设计时包,然后打开文件 c:\ Program Files(x86)\ CodeGear \ RAD Studio \ 5.0 \ lib \AlphaSkins \ D2007 \ acnt2007.dpk
  • 转到 Project Manager 窗口,在 acnt2007.bpl 树视图项上单击鼠标右键,然后选择 Install 弹出菜单项,则信息窗口应会弹出,其中包含有关新安装的组件的信息
  • 关闭信息对话框,选择 File \ Close All 并放弃更改(不保存)
  • create a directory wherever you want, I have created c:\Program Files (x86)\CodeGear\RAD Studio\5.0\lib\AlphaSkins\
  • unpack the whole content of the zip archive into that directory
  • open Delphi and go to the Tools\Options menu, in the opened dialog go to the Environment Options\Delphi Options\Library - Win32 and click on the browse button ... beside the Library path edit box; the Directories dialog will popup
  • insert your new created directory into the edit box in Directories dialog, click on the Add button and close both dialogs by clicking on the OK buttons
  • show the Project Manager window from menu View\Project Manager
  • now open the runtime package using File\Open... menu item and open the file c:\Program Files (x86)\CodeGear\RAD Studio\5.0\lib\AlphaSkins\D2007\acnt2007_R.dpk
  • go to the Project Manager window, click the right mouse button on the acnt2007_R.bpl tree view item and select Compile popup menu item, close the compilation dialog
  • now open the design time package using File\Open... menu item and open the file c:\Program Files (x86)\CodeGear\RAD Studio\5.0\lib\AlphaSkins\D2007\acnt2007.dpk
  • go to the Project Manager window, click the right mouse button on the acnt2007.bpl tree view item and select Install popup menu item, the information window should popup with the info about new installed components
  • close the info dialog, select File\Close All and discard the changes (don't save)

您还必须指定源代码( *.pas *.dcu 文件)的路径,否则,您将无法编译项目:

You have to specify also the path to the source codes (*.pas and *.dcu files), without doing it, you won't compile the project:

  • 转到 Tools \ Options 菜单,在打开的对话框中,转到 Environment Options \ Delphi Options \ Library-Win32 并单击浏览按钮... Library path 编辑框旁边;目录对话框将弹出
  • c:\ Program Files(x86)\ CodeGear \ RAD Studio \ 5.0 \ lib \ AlphaSkins \ D2007 \ 目录插入到编辑框中,单击 Add 按钮并通过单击 OK 按钮
  • 关闭两个对话框
  • 创建一些VCL项目并享受AlphaSkins组件!
  • go to the Tools\Options menu, in the opened dialog go to the Environment Options\Delphi Options\Library - Win32 and click on the browse button ... beside the Library path edit box; the Directories dialog will popup
  • insert the c:\Program Files (x86)\CodeGear\RAD Studio\5.0\lib\AlphaSkins\D2007\ directory into the edit box, click on the Add button and close both dialogs by clicking on the OK buttons
  • create some VCL project and enjoy the AlphaSkins components!

这篇关于在Delphi 2007中使用第三方组件的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆