Available in the LEADTOOLS Imaging toolkit. |
Upgrading a Delphi 2.0 Application to Use LEADTOOLS 16
These instructions describe how to upgrade a Delphi 2.0 application from LEADTOOLS 12.1 to LEADTOOLS 16. You can also follow these instructions when upgrading from an earlier version of LEADTOOLS.
Upgrading requires the following steps:
1. Install LEADTOOLS 16. Note the following:
By default LEADTOOLS 16 is installed into a different folder than previous versions. Nevertheless, in Delphi, only one version of the LEAD control can be used. Therefore, you must complete the remaining steps in these instructions whenever you want to use a different version of the LEADTOOLS ActiveX.
2. Open your project and remove each old LEAD control as follows. (You can use the tab key to make sure that you find all of the controls on a form.)
a. Before removing a control, note all of the events where procedures are assigned. Later, you will have to reassign them to the new control.
b. Also, before removing a control, note the control name, and any other properties that you may need to assign to the new control. (You only need to note properties that are set to non-default values at design time.)
c. Press the Delete key to remove the control.
3. Close your project.
4. Remove the old LEAD icon from the toolbar as follows:
a. On the main menu, select the Component > Install option.
b. In the list of Installed units, select LEAD, and click the Remove button.
c. Click OK and wait for Delphi to remove the LEAD control from the toolbar. (This may take some time, and there is no other indication that anything is happening.)
5. Install the new LEAD control as follows:
a. On the main menu, select the Component > Install option.
b. Click the OCX button.
c. In the Import OLE Control dialog box, select the LEAD OLE Custom Control (16) module and then click OK. Answer yes when you are prompted to replace the LEAD.PAS file.
d. Click OK and wait for Delphi to add the LEAD control to the toolbar. (This may take some time, and there is no other indication that anything is happening.)
6. Replace the imported LEADDEF.PAS file. To do so, take the following steps:
a. Reopen your project.
b. On the main menu, select the Project > Remove from Project option, and remove the current LEADDEF.PAS file.
c. Select the Project > Add to Project option, and add the LEADDEF.PAS file from the LEADTOOLS 16 INCLUDE folder.
7. Add each new LEAD control as follows:
a. Select the LEAD icon and draw the control on the form.
b. In the Object Inspector, specify the Name and any other non-default properties that you noted earlier.
c. In the Object Inspector, specify any event procedures that you noted earlier. (You can choose them from the list box.)
8. Run your application to test it.