Convert Delphi 7 Property Editor to Delphi XE2

First of all, I never wrote a property editor from scratch, but had some help with one in another question . See Accepted Answer. That was in Delphi 7, and now I started using XE2, and I have to make sure that my property editor is compatible with both 7 and XE2.

This, in fact, is a collection editor, with the difference that each element of the collection has its own named component in the parent form. Is there anything new about property editors in XE2 with 7 since this is a huge version of jump?

I do NOT want to make a full copy of my device for different versions. I want to support all possible versions in one device.

Edit

It seems that Delphi XE2 has the same property editors as Delphi 7, but the problem I ran into was that although I included DesignIDE in my package, it didn’t find anything, so I had to add ToolsAPI to my way to the library.

However, now I have a new problem after that.

[DCC Fatal Error] ToolsAPI.pas(18): F1026 File not found: 'DockForm.dcu'

I get lost in the whole concept of BPL packages and require others, etc.

+3
delphi custom-component delphi-xe2 delphi-7
source share
2 answers

DesignIntf, DesignEditors, DesignMenus, DesignWindows are part of DesignIDE.bpl and are located in \ Embarcadero \ RAD_Studio \ 9.0 \ lib \ win32 \ release \ designide.dcp. But there is no designide.dcp for 64-bit , so it generates an error when compiling a 64-bit package that refers to these devices.

There is no 64-bit version of DesignIDE, because it is a development-time package, and development-time packages are only 32-bit (remember that there are still only 32 bits in the Delphi IDE). Therefore, always install your development-time package as 32-bit, not 64-bit. :)

Mike

+4
source share

The source code for DockForm.pas not available in either Delphi XE or Delphi XE2.

You can try this accepted answer posted on SO for a similar issue at Delphi 2010.

Presumably, it is compiled and included in a package already distributed with Delphi XE2.

+3
source share

All Articles