Closed GoogleCodeExporter closed 8 years ago
Ranged integers are not supported, though
type
TColor = -$7FFFFFFF-1..$7FFFFFFF;
is effectively a convoluted way of describing a signed 32bit integer.
> However, the end result (passing as integer through to Delphi)
> is not anywhere close, for example, clRed shows blue and clBlue shows red.
You have to use the same convention as in Delphi, were in hexadecimal, it's BGR
and not RGB, f.i. if you look in Graphics.pas, you'll see
clYellow = TColor($00FFFF);
Original comment by zar...@gmail.com
on 5 Nov 2012 at 7:36
In attempt to declare colors like that, it's still not working. I get the same
results using "clYellow = TColor($00FFFF);" as I do using "clYellow =
$00FFFF;". Using "TColor = Integer;" just doesn't seem right, and I know
"TColor" isn't necessarily a useful type for typical DWS implementation, but in
my case, I need it. How else could I define it to work?
Original comment by djjd47...@gmail.com
on 5 Nov 2012 at 11:03
I didn't notice the swapped R/B, after doing that it works.
Original comment by djjd47...@gmail.com
on 5 Nov 2012 at 11:10
Original issue reported on code.google.com by
djjd47...@gmail.com
on 3 Nov 2012 at 11:41