【问题标题】:TColorProperty Delphi Berlin 10.1.2?TColorProperty Delphi Berlin 10.1.2?
【发布时间】:2017-07-11 09:25:22
【问题描述】:

我正在尝试将一个组件从 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;

在 Delphi 7 中,这个类在 VCLEditors 单元中。但我在柏林德尔福找不到。

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

【问题讨论】:

  • 在 Delphi 10.1 Berlin VCLEditors.pas 单位位于 C:\Program Files\Embarcadero\Studio\18.0\source\ToolsAPITColorProperty 类存在。我没有安装更新 2,所以无法验证 ud2 中的位置。
  • @TomBrunberg:VCLEditors 的位置自 D6 以来一直没有改变 ($(BDS)\source\ToolsAPI),当时 DsgnIntf 被拆分并引入了 VCLEditors。并且TColorProperty 没有被移出VCLEditors,AFAIK。
  • @TomBrunberg:给定版本中的更新是不间断的,所以TColorProperty 在下一个主要版本之前不能移动到另一个单元(如果有的话)。所以它必须仍然存在于更新 2 中的 VCLEditors 中。
  • 是的,@Remy 感谢您的补充说明。

标签: delphi components vcl delphi-10.1-berlin


【解决方案1】:

我知道这不是您所要求的(由于我的声誉低,我无法对此发表评论),但我在 RAD 西雅图工作室使用相同的组件。但它并未在柏林进行测试。

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

在delphi 7中同样的安装步骤在她身上应用。

问候;纳斯雷丁。

【讨论】:

    【解决方案2】:

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

    从 Delphi 6 开始,TColorProperty 位于 VCLEditors 单元中,在 10.1 Berlin 中仍然存在。

    话虽如此,运行时代码(组件等)和设计时代码(编辑器、IDE 注册等)必须分成不同的包,其中设计时包需要运行时包和DesignIDE 包。下载中包含的包文件不是这样设置的。旧 IDE 版本没有强制执行此操作,但现代 IDE 版本执行此操作。因此,请确保在为 10.1 Berlin 创建新包时进行更改。

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 2016-12-13
      • 2017-07-26
      • 1970-01-01
      • 1970-01-01
      • 2023-03-17
      • 1970-01-01
      • 1970-01-01
      • 2017-05-07
      相关资源
      最近更新 更多