2011-08-07 3 views
1

델파이 XE (잘 작동 델파이 2010).델파이 : 프레임 + colorbox = 버그

시도해보십시오. 프레임과 그 안에 색상 상자를 만드십시오. 색상 상자 -> 세트 검정색 이외의 선택된 색상 및 스타일 = cbCustomColor (cbCustomColors가 아님); 프레임을 양식에 붙여 프로젝트를 저장하십시오.

프로젝트를 닫습니다. 아래 Reopen-> 오류 :

enter image description here enter image description here

나는 괴물이되어이 "사용자 정의 색상", 필요 나, 색상 상자, 프레임 또는 전체 델파이? :) 감사합니다 !!!

소스 코드 :이 델파이 XE의 버그

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. 

답변

2

. 이 번호를 QC bug reporting system at Embarcadero에 추가하십시오.

+0

누군가보고를 원하면보고하십시오. 나는 원하지 않는다. 나는 게으르다 (나는 전문 프로그래머가 아니므로 이것이 내 우선 순위가 아니다). – maxfax

+0

나는 프로 프로그래머가 아니지만보고를한다. 그것은 당신과 다른 사람들을 돕습니다. 보고되지 않은 버그는 해결 될 가능성이 훨씬 더 큽니다. –

+0

@ Rudy Velthuis, 맞아! 신고 해주세요! – maxfax