Changed Unit Names

<< Click to Display Table of Contents >>

Navigation:  Notes for Upgraders > ... when upgrading from WPTools 4 >

Changed Unit Names

One of the first things you might realize when you try to compile a WPTools V4 project with WPTools Version 9, is that some unit names no longer exist.

This is because we decided to create new units for program code which is entirely new. At the same time obsolete units were deleted.

 

We recommend to delete all wp* units from the uses clause of each unit, add units WPRTEPaint and WPObj_Image and let Delphi add the other required units.

 

The following changes are required:

 

Change

 WPDefs, WPObj, WPRtfTXT, WPRTFIO

all to WPRTEDefs, WPRTEDefsConsts, WPRTEPlatform, WPRTEEdit

 

Change

 WPRtfIO, WPRtfInp

to WPRTEPaint

 

Change

 WPEmOBJ

to WPObj_Image

 

WPRTEDefs and WPRTEPaint are the main units of the "RTF-Engine". Their pascal code is only included in WPTools Professional and WPTools PREMIUM.

 

Change

 WPPrint, WPWinCtr

to WPCTRMemo

 

The unit WPCTRMemo contains the editor control and the preview, making unit WPPreVw obsolete.

 

Change

  WPRich

to WPCTRRich

 

The unit WPCtrRich contains the procedures, objects and properties which were mainly added to provide compatibility to older WPTools versions. It is required by the TWPToolBar, TWPRuler and TWPAction classes.

 

The unit WPStat2 is not included.

Please use a standard status bar (Win32 tab). The old WPTools 1 status bar has been discontinued.

 

The HTML support is included in unit WPIOHTML, the units WPReadHT, WPWrtHT and WPXMLFile are obsolete. WPTools Version 9 will always use CSS in the created HTML code.

 

The RTF reader is implemented in unit WPIOReadRTF, the RTF writer in WPIoWriteRTF. (WPreader and WPWrtRTF is obsolete)

 

The ANSI reader and writer are implemented in WPIoANSI, not WPWrite2.

 

Important: You need to use "FormatStrings" instead of the properties LoadOptions and StoreOptions!

 

unit WPPapBin always was nothing more than an example unit. The old version will still work. Also see demo: "PrinterSetup"

 

The main WPReporter class TWPSuperMerge is now located in WPRTEReport, not in wpmerge.pas.

 

The component WPFiler is not supported anymore.

 

Quickreport support has been discontinued.