Upgrade to Delphi 6 - Compatibility Issue 3 (End)

zhaozj2021-02-11  183

Eight. TDesignWindow changes

Many variations are related to class TDesignWindow. Its declaration is moved to unit designWindows, and the fromClosed method is replaced with DesignerClosed. In the past, the FORM can be accessed by accessing the parameter AFORM in the fromClosed event. In the new event designerclosed, we need to access the DESigner root property to access the Form.

In the FormClosed event, we can create a selection list by calling TDesignersEctionList.create or tComponentList.create. And in the DesignerClosed event as the same thing, we have to use the IdesignerseLections interface. You can call the CreateSelectronList function to get an excuse.

The parameters of the SelectionClosed method are also different from the Delphi 5 versions.

TDesignWindow Changes

There have been a number of changes related to the class TDesignWindow. It has been moved to the DesignWindows unit, and its FormClosed method has been replaced by DesignerClosed. In the past, one could obtain access to the form within FormClosed by using the AForm parameter . In designerclosed, IT IS NOW Necessary to Use Designer's Root Property to Access The Form.

In FormClosed, one would create selection lists by calling TDesignerSelectionList.Create or TComponentList.Create. To create selection lists within DesignerClosed, it is necessary to use an IDesignerSelections interface. You can create one using the CreateSelectionList function.

Parameters for the SelectionClosed Method Are Also Different from What They WERE IN DELPHI 5.

Borland Wishes To Than Youk Field Tester Matt Palcic for Bringing these Changes To Our Attention.

nine. VCL Changes

Some VCL-related packages have been reassigned into other packages. If you quote VCL50.DCP in the project, you need to change this reference to other units such as VCL.DCP and RTL.DCP.

VCL Package Changes

The contents of some of the VCL-related packages have been redistributed into other packages. If you made references to vcl50.dcp in your project, you will need to change those references to other units, such as vcl.dcp and rtl.dcp.

Borland Wishes To Than Thak Field Tester CLAY SHANNON for Bringing this change to out. Ten. OpenGL interface unit is changed to RTL.DCP

The Borland OpenGL Interface Unit (OpenGL.DCU) is a separate unit in the library unit directory of Delphi 5. It is merged into the RTL.DCP in Delphi 6. This can lead to some problems when certain Delphi 5 projects are upgraded to Delphi 6.

For example, please. In the project of Delphi 5, you may be able to place the unit as the OpenGL unit in the engineering directory to overwrite the OpenGL unit provided by the system. In Delphi 6, if there is any component reference RTL.dcp, it will result in naming conflicts to change the name.

OpenGL Interface Unit Moved to RTL.dcp

The Borland OpenGL interface unit (opengl.dcu) was an independent unit in the Delphi 5 Lib folder. It has been incorporated into rtl.dcp in Delphi 6. This may cause some problems for Delphi 5 projects ported to Delphi 6.

Here is an example. In a Delphi 5 project, it was possible to make a project-specific override of the OpenGL unit by placing a unit with the same name somewhere in your project path. The same method used in Delphi 6 causes a name conflict IN Any Component That Uses RTL.dcp Also, And A Name Change is now Required.

Borland Wishes to Thank Field Tester John Williams for Bringing this change to our attention.

eleven. Some types of declarations in httpapp.pas units are moved to httpprod.pas units

A part of the HTTPAPP unit is moved to the HTTPPROD unit. They are THTMLBGCOLOR, THTMLALIGN and THTMLVALIGN. If you use these classes in your project, you need to change the referenced units from httpprod to httpApp.

Types Moved from httpapp.pas to httpprod.pas

Several types in the HTTPApp unit have been moved to the HTTPProd unit. They are THTMLBgColor, THTMLAlign and THTMLVAlign. If your projects use any of these units, you should change your uses statements to refer to HTTPProd instead HTTPApp.

twelve. The SEARCH unit is deleted, the SearchBuf routine has made modifications and moved

Unit Search is no longer retained in Delphi 6. The SearchBuf routine is used to locate the substrings in a buffer in a text, which has been moved to the STRUTILS unit, and the parameters called the call also change. The last parameter is changed to a TSTRINGSEarchOptions. If your project cannot be compiled because you can't find the Search unit, change the reference Search to reference the Strutils unit. At the same time, you should check if the call to SearchBuf is in line with the new syntax. Search Unit Removed, Searchbuf Moved and Changed

The unit Search no longer exists in Delphi 6. The SearchBuf routine, which locates a substring within a text buffer, has been moved to the StrUtils unit and its parameters have changed. The final parameter is now a TStringSearchOptions object. If your project won ' t compile because the compiler can not find the Search unit, change your uses statement to include StrUtils instead of Search. You will also want to check your SearchBuf calls to ensure that your parameters match the new syntax.

Culture

转载请注明原文地址:https://www.9cbs.com/read-5343.html

New Post(0)