DELPHI third-party controls and components (installation method and use)

1. Introduction to the installation method of DELPHI third-party controls


1. For a single control, Component–>install component..–>PAS or DCU file–>install;

2. For the control package with *.dpk file, File->Open (select *.dpk in the drop-down list box)->install;

3. For the control package with *.bpl file, Install Packages–>Add–>bpl file name;

4. If the above Install button is invalid, try the Compile button;

5. If it is run time lib, add runtimepackes under packages under option.

If the prompt file cannot be found when compiling, it is generally because the installation directory of the control is not in the Lib directory of Delphi. There are two ways to solve it:

1. Copy the uninstalled source files into the Lib directory of Delphi;

2. Or add the control source code path to the Lib directory of Delphi in Tools->Environment Options.

Note: Whether the installed controls are compatible with the Delphi version you are using.

----------------------------------------------------------------

control delete

Remove in Component/Install Packages.

选Component/configure Palette…

There are two areas: pages and components

Double-click the components area, select the control you want to delete, there is a Delete button below

But the controls provided by the system can only Hide, not delete.

Open the package file (*.dpk) where the control is located, delete the file of the control, and then recompile the package.

If the entire control package is to be deleted, project→Option→Packages, delete that package, and call it a day.
-------------------------------------------------- --------------

Second, due to the different ways of providing components, the installation methods are also different. The following is an introduction to the installation methods of various forms of components that are currently common.

1 Component with only one DCU file.
The DCU file is a compiled unit file, and the author does not want to publish the source code for such a component. In general, the author must state which version of Delphi this component is suitable for. If the version is not correct, an error will occur during installation. It is precisely because there is no source code, which brings inconvenience to users, that is, once the Delphi version is upgraded, this component can no longer be used. Of course, some authors provide several versions of DCU files, and users can choose to use them according to their needs. The installation method of such a component is: in the Component menu, select install component, in the "into existing package" page in the dialog box, click the "Browse" button after the "Unit file name", in the open file dialog box , set the "file type" to *.dcu, find the DCU file to be installed, press the OK button to return to the "into existing package" page, and then press the OK button to install. Note that Delphi will prompt that dclusr40.dpk will be rebuilt at this time, whether to continue, OK. Here is to install the components into the dclusr40.dpk package. This package can be seen from the file name as a user-defined component package. Install it into this package first, and then talk about the precautions below. After the installation is completed, there will be a prompt message that the component has been registered and the information on which component page to install it. Go to the component panel to see a new component page, which contains the components that have just been installed.

2. Only PAS files or components that have both PAS and DCU files.
This kind of component has a PAS file, which means that the author provides the source code, which is much easier to handle. The installation method is the same as above. It can be set to DCU or PAS in the file type. It is recommended to set it to PAS, so you can recompile it with your Delphi to see if there is a problem. After Delphi is upgraded, only PAS files can be selected to install, so as to recompile, so that the components can adapt to the new Delphi version. Such components are worth using. According to Xinling's experience, it is best not to use components without source code. First, there is a problem that the Delphi version cannot be used after the upgrade of the Delphi version. Moreover, when there is a problem with the program, the user cannot debug the component to judge whether it is not. There is a bug in the component.

3. Component package with dpk file.
A component package with a dpk file is generally composed of multiple components, that is to say, there will be multiple components for use after installation. If there is only one component author generally will not make a DPK file, just use the above method to publish it. . For such a component package, there are generally detailed installation instructions, such as the RXLIB mentioned above. Due to the complexity of the components and the order of installation, the author does not provide installation instructions and the user cannot install it correctly at all. If there is no installation instruction file, then use the following method to install: under the File menu, select "OPEN..." to open the dpk file (select *.dpk in the file type list box), in the Package window that appears, there is an Install button on the toolbar , press this button to install. If the Install button is in an invalid state, then press the Compile button to compile first. Generally speaking, the Install button will be in a valid state after compiling, and then press the Install button again.

4. Component package with Bpl file.
Generally speaking, this is also a component package composed of various components, which is actually a dynamic link library file (DLL). The installation method for this component package is: select "install packages" under the component menu, then click the Add button, find the corresponding bpl file in the open file dialog box, open it and return, and then click the Ok button. .

5, ActiveX control installation.
To install this type of control, you need to register with regsvr32.exe first, and then select the Import ActiveX Control item in the Component menu. In the window opened by Import ActiveX Control, only the ActiveX controls that have been registered will appear in the list, select one and press the Install button to install it. If you have not registered with regsvr32.exe in advance, you can also press the ADD button to find the OCX file and register it immediately, and then install it after registration.

----------------------------------------------------------------

A few notes:
1. After you get the component, first check if there is any documentation. Generally speaking, there are instructions on how to install in the documentation. Some of the components will also have usage instructions for the properties, events, and methods of the components. is very important.

2. Before the above component (package) installation operation, it is best to copy *.bpl to your System directory, and copy *.pas, *.dcu, *.dcr, *.dp? to Delphi's Lib directory in progress.

3. We mentioned earlier that when installing the DCU component, the existing dclusr40.dpk is selected. Of course, you can also choose to install it in a new package. If you choose a new package, you need to choose a name such as DEMO first. In fact, after the installation is complete What the user can find is Demo.bpl, but not DEMO.DPK. If you have already installed a component into dclusr40.dpk, and want to install another component, if you install it into dclusr40.dpk, you will get a prompt after installation that the previously installed component has been unregistered and you will not be able to use it . Doesn't this make it possible to install only one component? You can use both components at the same time unless you install into a new package. Of course, it is worthwhile to generate a new BPL file every time you install a component, but the BPL file will increase a lot. Can I install more components in dclusr40.dpk? Of course it is possible. The method is as follows: Open the dclusr40.dpk file with OPEN under the File menu, click the ADD button, select the ADD UNIT page in the opened dialog box, and press the "Browse" button after the Unit file name to open the component unit file, OK. In this way, unit files of multiple components can be added. After adding, click the compile button, and then press the Install button. If the unit file is compiled (DCU), you can directly press the Install button.

4. Removal of components. It's not enough to just install it, it will also be deleted. Very simple, under the component menu, select install packages, find the Bpl where the installation is located in the list, press the Remove button, ok! If you don't delete the BPL file, you can install and use it again next time according to the method of installing the BPL component.

5, Add the old version of Delphi component:
TServerSocket component: component-"install packages-"add-"delphi7\bin\dclsockets70.bpl-"OK

----------------------------------------------------------------

Classic components:

DBISAM: Standalone Database Components Package

Indy: Web Application Design Component Package

Rave: report design package

IntraWeb: Visual Web Programming Component Package

1stClass: Deformation interface design component package

FastNet

Tcpserver和Tcpclient

----------------------------------------------------------------

Friends often ask such questions:
"Where are the familiar controls I used in delphi5 or delphi6? Is it gone in delphi7? Does this mean that all the code I wrote before can not be transplanted? Coming to delphi7? Do I have to learn to adapt to these new controls?"

Now I will explain this problem, and summarize the VCL and CLX in delphi7, so that friends who have this need can make inquiries. In fact, the controls we used in the original versions such as D5 and D6, such as Quickrep, FastNet, etc., are still reserved in D7. It's just that Delphi did not install them into the component panel by default. These control packages are all saved in the bin of the Delphi directory, and the file extension is .bpl (nearly 60 in total).

The way to install these packages is very simple, just click the menu "component-→Install Packages...", and then use "ADD" to select the required package.

The following describes some of the controls in the bpl list:

dclact70.bpl (Borland Actionbar Components)

包括的控件:TStandardColorMap、TTwilightColorMap、TXPColorMap、TActionToolBar、TActionManager、TActionMainMenuBar、TCustomizeDlg

dclado70.blp(Borland ADO DB Components)

Controls included: TADOCommand, TADOConnection, TADODataSet, TADOQuery, TADOStoredProc, TADOTable, TRDSConnection

dclbde70.bpl(Borland BDE DB Components)

Controls included: TDBLookupCombo, TDBLookupList, TBatchMove, TDatabase, TNestedTable, Tquery, TSession, TStoredProc, TTable, TUpdateSQL

dclclxdb70.bpl(Borland CLX Database Components)

Controls included: TDBCheckBox, TDBComboBox, TDBEdit, TDBImage, TDbListBox, TDBLookupComboBox, TDBLookupListBox, TDBMemo, TDBNavigator, TDBRadioGroup, TDBText, TDBGrid

dclclxstd70.bpl(Borland CLX Standard Components)

包括的控件:TActionList、TBitBtn、TSpeedButton、TCheckListBox、TAnimate、 THeaderControl、TIconView、TListView、TPageControl、TProgressBar、TSpinEdit、 TStatusBar、TTabControl、TTextBrowser、TTextViewer、TToolBar、TTrackBar、 TTreeView、TColorDialog、TFindDialog、TFontDialog、TOpenDialog、TSaveDialog、 TBevel、TControlBar、TImage、TPaintBox、TPanel、TRadioGroup、TShape、TSplitter、 TTimer、TDirectoryTreeView、TFileEdit、TFileHistoryComboBox、TFileIconView、 TFileListView、TFilterComboBox、TDrawGrid、TImageList、TMaskEdit、TMainMenu、 TPopupMenu、TButton、TCheckBox、TComboBox、TEdit、TGroupBox、TLabel、 TLCDNumber、TListBox、TMemo、TRadioButton、TScrollBar

dcldb70.bpl(Borland Database COmponents)

Controls included: TDdataSourse, TDBCtrlGrid, TDBCheckBox, TDBComboBox, TDBEdit, TDBImage, TDBListBox, TDBLookupComboBox, TDBLookupListBox, TDBMemo, TDBNavigator, TDBRadioGroup, TDBRichEdit, TDBText, TDBGrid

dclmcn70.bpl(Borland DataSnap Connection Components)

Controls included: TConnectionBroker, TDCOMConnection, TSharedConnection, TSimpleObjectBroker, TSocketConnection, TWebConnection, TLocalConnection

Controls included in dcldbx70.bpl (Borland dbExpress Components): TSQLConnection, TSQLDataSet, TSQLMonitor, TSQLQuery, TSQLStoredProc, TSQLTable

dcldss70.bpl(Borland Decision Cube Components)

Controls included: TDecisionCube, TDecisioinSource, TDecisionGraph, TDecisionGrid, TDecisionPivot, TDecisionQuery

ibevnt70.bpl(Borland Interbase Event Alerter Component)

Included controls: TIBEventAlerter

dclnet70.bpl(Borland Internet Components)

包括的控件:TQueryTableProducer、TDataSetTableProducer、TSQLQueryTableProducer、 TDataSetPageProducer、TWebDispatcher、TPageProducer、TTcpClient、TTcpServer、 TUdpSocket、TXMLDocument

dclisp70.bpl(Borland Internet Solutions Pack Components)

Controls included: TFTP, THTML, THTTP, TNNTP, TPOP, TSMTP, TTCP, TUDP

dclwbm70.bpl(Borland InternetExpress Components)

Controls included: TInetXPageProducer, TMidasPageProducer, TXMLBroker, TXMLTransform, TXMLTransformClient, TXMLTransformProvider

dclmid70.bpl(Borland MyBase DataAccess Components)

Included controls: TClientDataSet, TDataSetProvider

dclsmp70.bpl(Borland Sample Components)

Controls included: TCalendar, TColorGrid, TDirectoryOutline, TGauge, TSpinButton, TSpinEdit

dclocx70.bpl(Borland Sample Imported ActiveX Controls)

Controls included: TChartfx, TF1Book, TVtChart, TVSSpell

dcldbxcds70.bpl(Borland SimpleDataset Component(DBX))

Included controls: TSimpleDataSet

dclsoap70.bpl(Borland SOAP Components)

Controls included: TOPToSoapDomConvert, TSoapConnectoin, THTTPRIO, THTTPSoapPascalInvoker, THTTPReqResp, THTTPSoapDispatcher, TWSDLHTMLPublish

dclsockets70.bpl(Borland Socket Components)

Included controls: TClientSocket, TServerSocket

dclstd70.bpl(Borland Standard Components)

包括的控件:TActionList、TApplicationEvents、TBitBtn、TSpeedButton、TCheckListBox、 TCOMAdminCatalog、TAnimate、TComboBoxEx、TCoolbar、TDateTimePicker、 THeaderControl、THotKey、TListView、TMonthCalendar、TPageControl、 TPageScroller、TProgressBar、TRichEdit、TStatusBar、TTabControl、TToolBar、 TTrackBar、TTreeView、TUpDown、TImageList、TDdeClientConv、TDdeClientItem、 TDdeServerConv、TDdeServeritem、TColorDialog、TFindDialog、TFontDialog、 TOoenDialog、TPageSetupDialog、TPrintDialog、TPrinterSetupDialog、 TReplaceDialog、TSaveDialog、TBevel、TColorBox、TControlBar、TImage、 TLabeledEdit、TPaintBox、TPanel、TRadioGroup、TShape、TSplitter、TTimer、 TOpenPictureDialog、TSavePictureDialog、TScrollBox、TDrawGrid、TStringGrid、 TMaskEdit、TMainMenu、TmediaPlayer、TOleContainer、TButton、TCheckBox、 TComboBox、TEdit、TGroupBox、TLabel、TListBox、TMemo、TRadioButton、TScrollBar、 TStaticText、TvalueListEditor、TXPManifest

dclwebsnap70.bpl(Borland WebSnap Components)

包括的控件:TDataSetAdapter、TDataSetvaluesList、TAdapterPageProducer、TAdapter、 TApplicationAdapter、TEndUserAdapter、TEndUserSessionAdapter、 TLoginFormAdapter、TPagedAdapter、TStringsvaluesList、TAdapterDispatcher、 TLocateFileService、TPageDispatcher、TWebAppComponents、TSessionsService、 TWebUserList、TXSLPageProducer

dcl31w70.bpl(Delphi1.0 Compatibility Components)

Controls included: THeader, TNotebook, TDirectoryListBox, TDriveComboBox, TFileListBox, TFilterComboBox, TOutline, TTabbedNotebook, TTabSet

DCLIB70.bpl(InterBase DataAccess Components)

Controls included: TIbClientDataSet, TIBDataSet, TIBDatabase, TIBTransaction, TIBDatabaseinfo, TIBevents, TIBExtract, TIBQuery, TIBSQL, TIBSQLMonitor, TIBStoredProc, TIBTable, TIBUpdateSQL

dclindy70.bpl(Internet Direct(Indy)for D7 Property and Component Editors)

Controls included: TIdAntiFreeze, TIdBlockCipherIntercept, TIdChargenServer, TIdChargenUDPServer, TIdDecodeMIME, TIdEncodeMIME, …

dclie70.bpl(Internet Explorer Components)

Included controls: TWebBrowser

dclIntraweb_50_70.bpl(Intraweb 5.0 Design Package for Delphi7)

Controls included: TIWClientSideDataset, TIWCheckBox, TIWButton, TIWEdit…

dcloffice2k70.bpl(Microsoft Office 2000 Sample Automation Server Wrapper Components)

包括的控件:TAccessApplicatoin、TAccessForm、TAccessReferences、TAccessReport、 TClass_、TBinder、TExcelApplication、TExcelChart、TExcelOLEOBject、 EExcelQueryTable、TExcelWorkbook、TExcelWorksheet、Tmaster、 TPowerPointApplication、TPowerPointPresentation、TPowerPointSlide、 TContactItem、TDistListItem、TDocumentItem、TExplorers、TFolders、 TInspectors、TItems、TJournalItem、TnameSpace、TOutlookApplication、 TOutlookBarGroups、TOutlookBarPane、TOutlookBarShortcuts、TPostItem、 TRemoteItem、TReportItem、TTaskRequestAcceptItem、TTaskRequestAcceptItem、 TTaskRequestDeclineItem、TTaskRequestItem、TTaskRequestUpdateItem、 TWordApplication、TWordDocument、TWordFont、TWordLetterContent、 TWordParagraphFormat

dclqrt70.bpl(QuickReport Components)

Controls included: TQRDBImage, TQRDBRichText, TQRDBText, TQRExpr, TQRExprMemo, TQRImage, TQRLabel, TQRLabel, TQRMemo, TQRRichText, TQRShape, TQRSysData, TQRCSVFilter, TQRHTMLFilter, TQRTextFilter, TQRPreview, TQRBand, TQRChildBand, TQRCompositeReport, TQRGroup, TQRStringsBand, TQRSubDetail, TQuick

dclRave70.bpl(Rave Reports DE 5.0 Package)

Controls included: TRvCustomConnection, TRvQueryConnection, TRvTableConnection, TRvDataSetConnection, TRvNDRWrite, TRvProject, TRvRenderHTML, TRvRenderPDF, TRvRenderPreview, TRvRenderPrinter, TRvRenderRTF, TRvRenderText, TRvSystem, TRvCustomConnection, TRvTableConnection, TRvDataSetConnection, TRvNDRWriter, TRvProject

dclshlctrls70.bpl(Shell Control Property and Component Editors)

Included controls: TShellChangeNotifier, TShellComboBox, TShellListView, TShellTreeview

dcltee70.bpl(TeeChart Components)

Included controls: TChart, TDBChart

dcltqr70.bpl(TeeChart for QuickReport Components)

Included controls: TQRChart

----------------------------------------------------------------


 

Source:

UNDONER ( Xiaojie Blog ) : http://blog.csdn.net/undoner

LSOFT.CN (Langsoft China ) : http://www.lsoft.cn

Guess you like

Origin http://43.154.161.224:23101/article/api/json?id=324153043&siteId=291194637