【问题标题】:Delphi: frame+colorbox=bug德尔福:框架+彩盒=错误
【发布时间】:2011-10-21 18:32:55
【问题描述】:

Delphi XE(在 Delphi 2010 中运行良好)。

尝试:在其中创建一个框架和一个颜色框。颜色框 -> 设置一个 非黑色的选定颜色和一个样式 = cbCustomColor(不是 cbCustomColors);将框架粘贴到表单中,保存项目。

关闭项目。重新打开->错误如下:

我需要这个“自定义颜色”,谁在抓狂:我,一个颜色框,一个框架还是整个 Delphi? :) 谢谢!!!

源代码:

object Form1: TForm1
  Left = 0
  Top = 0
  Caption = 'Form1'
  ClientHeight = 202
  ClientWidth = 447
  Color = clBtnFace
  Font.Charset = DEFAULT_CHARSET
  Font.Color = clWindowText
  Font.Height = -11
  Font.Name = 'Tahoma'
  Font.Style = []
  OldCreateOrder = False
  PixelsPerInch = 96
  TextHeight = 13
  inline Frame21: TFrame2
    Left = 72
    Top = -38
    Width = 320
    Height = 240
    TabOrder = 0
    ExplicitLeft = 72
    ExplicitTop = -38
  end
end

unit Unit1;

interface

uses
  Windows, Messages, SysUtils, Variants, Classes, Graphics, Controls, Forms,
  Dialogs, Unit2;

type
  TForm1 = class(TForm)
    Frame21: TFrame2;
  private
    { Private declarations }
  public
    { Public declarations }
  end;

var
  Form1: TForm1;

implementation

{$R *.dfm}

end.

object Frame2: TFrame2
  Left = 0
  Top = 0
  Width = 320
  Height = 240
  TabOrder = 0
  object ColorBox1: TColorBox
    Left = 72
    Top = 48
    Width = 145
    Height = 22
    Selected = clGreen
    Style = [cbStandardColors, cbExtendedColors, cbSystemColors, cbCustomColor]
    TabOrder = 0
  end
end


unit Unit2;

interface

uses
  Windows, Messages, SysUtils, Variants, Classes, Graphics, Controls, Forms, 
  Dialogs, StdCtrls, ExtCtrls;

type
  TFrame2 = class(TFrame)
    ColorBox1: TColorBox;
  private
    { Private declarations }
  public
    { Public declarations }
  end;

implementation

{$R *.dfm}

end.

【问题讨论】:

    标签: delphi delphi-xe tframe


    【解决方案1】:

    这是 Delphi XE 中的一个错误。请将此添加到QC bug reporting system at Embarcadero

    【讨论】:

    • 如果有人想举报 - 请举报。我不想要,我很懒(我不是专业程序员,所以这不是我的首要任务):)
    • 我也不是专业程序员,但我做报告。它可以帮助您和其他人。未报告的错误被解决的机会要大得多。
    • @Rudy Velthuis,对!请举报!
    • @maxfax 如果这不是优先事项,为什么要让 Rudy 报告呢?如果你不关心这个错误,为什么要在这里问这个问题?提交一份 QC 报告需要 5 分钟。
    • @maxfax 我认为 Jeroen 的回答是确认这是一个错误。事实上,每当 IDE 引发 AV 对话框时,无论输入是什么,我都会认为这是一个错误。
    猜你喜欢
    • 2018-08-18
    • 1970-01-01
    • 1970-01-01
    • 2014-07-08
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 2015-02-17
    • 1970-01-01
    相关资源
    最近更新 更多