Delphi Color Matching to wxColour?

Bob wxwidgets at gmail.com
Tue Mar 4 05:58:13 PST 2008


My colleague wrote an application in Delphi,
and I now need to match the colors that he
used in my wxWidgets App.

His Delphi Color Code:

DelphiCommandColor : TColor =3D $00045FF5; //Dark Orange

In Delphi the order is Blue:0x04, Green:0x5F, Red:0xF5.

Taking that into account if I do:

wxColour DelphiCommandColor(  0xF5, 0x5F, 0x04 );

my color does not match his. Their both kind of Orange
but not at all close in shade, when I run both
applications side by side on my XP machine.

His is light, despite the comment, and mine is dark.
He claims his color code matches PhotoShop, but I don't
have that to try for myself.  Gimp matches my color.

I'm using the color to set the background of a wxGrid cell,
if that matters?

This is with wx287, on XP with Digital Mars compiler.

Suggestions on how to match the Delphi Colors?
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.wxwidgets.org/pipermail/wx-users/attachments/20080304/192=
239d3/attachment.htm


More information about the wx-users mailing list