TColorProperty Delphi 柏林 10.1.2?

TColorProperty Delphi Berlin 10.1.2?

我正在尝试将组件从 Delphi 7 转换为 Delphi Berlin(平面样式组件:https://sourceforge.net/projects/flatstyle/

在对源进行多次更改后,我卡在了 TColorPorperty

见下文:

type
  TRxColorProperty = class(TColorProperty)
  public
    function GetValue: string; override;
    procedure GetValues (Proc: TGetStrProc); override;
    procedure SetValue (const Value: string); override;

在Delphi7中,这个class在VCLEditors单元中。但我在 Delphi 柏林找不到。

谁能告诉我在 Delphi 柏林哪里可以找到她?

TFlatDesignRegister.pas 单元正在使用过时的 DsgnIntf 单元。该单元已被删除并重构 in Delphi 6 为各种新单元(DesignIntfDesignEditorsVCLEditors 等)。代码无法按原样编译 in Delphi 7。使其在 Delphi 7 中编译所需的任何更改仍然适用于 10.1 Berlin。

Delphi6以后,TColorPropertyVCLEditors单位,10.1 Berlin仍然存在

也就是说,运行时代码(组件等)和设计时代码(编辑器、IDE 注册等)必须 分成不同的包,其中设计时包需要运行时包和 DesignIDE 包。下载中包含的包文件不是以这种方式设置的。旧 IDE 版本不强制执行,但现代 IDE 版本执行。因此,请确保您在为 10.1 Berlin 创建新包时进行了更改。

我知道这不是你问的(由于我的声誉低,我无法对此发表评论)但我在西雅图 RAD 工作室使用相同的组件。虽然它没有在柏林进行测试。

这是 link。 使用它需要您自担风险。

她应用了 delphi 7 中相同的安装步骤。

此致; Nasreddine.