不知道那位高手可以教小第一下怎么样使用第三方控件,能不能具体地说一下它的安装和使用呢?或者那里可以找到使用的说明?非常谢谢!

解决方案 »

  1.   

    其实Delphi本来就带了很多第三方控件,所以第三方控件的使用和自带的控件是一样的,所需要知道的就是如何安装罢了,一般的控件包里都有Readme文件,里面详细的说明了安装方法,有的和一般软件的安装一样的,只要Install就行了,你可以到www.delphibox.com去下载你喜欢的控件,很多!
      

  2.   

    以Ehlib的安装为例(大多数控件就是这么安装的):
    先把Delphi7目录中的文件全部拷到Common目录,然后把Common单独拷到另外的地方,在delphi中File->Open打开EhLib70.Dpk,在出现的窗口中按Compile,然后再File->Open打开DclEhLib70.Dpk,Compile->Install,最后在Tools->Environment Options->Library->Library path中设置Common目录在硬盘上的路径,就搞定了!英文说明如下:
    Uninstall previous or evaluation version of EhLib (Old version) from Delphi 
    IDE. Remove or copy to other directory files of old version to prevent 
    crossing old and new version of EhLib (Including EhLib.bpl, EhLib.dcp or 
    EhLibXX.bpl, EhLibXX.dcp files). Create directory from which you will install EhLib library 
    ('EhLib directory') (for example, C:\Delphi[X]\EhLib).Copy files from Common and Delphi[X] directories of the EhLib archive
    to 'EhLib directory'.Use "File\Open..." menu item of Delphi IDE to open the runtime package - 
    EhLibXX.Dpk.
    In "Package..." window click "Compile" button to compile the package.By default Delphi (5, 6 and 7) place compiled EhLibXX.BPL file to the 
    <Delphi path>\Projects\Bpl directory and this directory already present 
    in the search PATH. But if you overwrite default BPL directory then you need
    put compiled EhLibXX.BPL file into directory that is accessible 
    through the search PATH (i.e. DOS "PATH" environment variable; for example, 
    in the Windows\System directory).Add, (if needed) 'EhLib directory' in Tools->Environment Options->Library->
    Library Path.After compiling run-time package you must install design-time
    package DclEhLibXX.BPL into the IDE.Use "File\Open..." menu item to open design-time package DclEhLibXX.Dpk.
    In "Package..." window click "Compile" button to compile the package
    and then click "Install" button to register EhLib components on
    the component palette. EhLib components have to appear on 'EhLib' page of components palette.