Watch, Follow, &
Connect with Us
Public Report
Report From: Delphi-BCB/VCL/Graphics    [ Add a report in this area ]  
Report #:  99353   Status: Closed
Colors messed up - clSkyBlue, clCream
Project:  Delphi Build #:  16.0.4256.43595
Version:    16.0 Submitted By:   Lukasz Rewak
Report Type:  Basic functionality failure Date Reported:  9/26/2011 4:06:37 PM
Severity:    Commonly encountered problem Last Updated: 3/20/2012 2:24:39 AM
Platform:    All platforms Internal Tracking #:   287884
Resolution: Fixed (Resolution Comments) Resolved in Build: : latest build
Duplicate of:  None
Voting and Rating
Overall Rating: No Ratings Yet
0.00 out of 5
Total Votes: None
Description
{USc: See reverse byte order for skyblue and cream

Delphi XE: $(BDS)\source\vcl\Graphics.pas

  clMoneyGreen = TColor($C0DCC0);
  clSkyBlue = TColor($F0CAA6);
  clCream = TColor($F0FBFF);
  clMedGray = TColor($A4A0A0);

Delphi XE2:
$(BDS)\source\vcl\Vcl.Graphics.pas

  clMoneyGreen = TColors.MoneyGreen;
  clSkyBlue = TColors.LegacySkyBlue;
  clCream = TColors.Cream;
  clMedGray = TColors.MedGray;

$(BDS)\source\rtl\common\System.UITypes.pas

    MedGray = TColor($A0A0A0);
    DkGray = ...
    MoneyGreen = TColor($C0DCC0);
    LegacySkyBlue = TColor($A6CAF0);
    Cream = TColor($FFFBF0);
}
Steps to Reproduce:
Create a new form and set the background color to either clSkyBlue or
clCream - you will notice the two colors are totally different to previous
versions of Delphi!?

Looking on the web at the documentation you can see that the constants have
changed - they are inversed for some reason !?!

http://docwiki.embarcadero.com/VCL/XE/en/Graphics#Constants
http://docwiki.embarcadero.com/VCL/XE2/en/Graphics#Constants

Workarounds
None
Attachment
None
Comments

Tomohiro Takahashi at 10/10/2011 10:21:32 PM -
We hope this issue will be fixed in future update release.

Server Response from: ETNACODE01