I don't use the Tcolor anymore, I have a TColorRec and that was working until the app starting getting a little larger then the
compiler started doing this.
BTW, Delphi has TColorRec definitions too. And this is the new definitions used by colors (as clRed, clYellow, etc ...). This is generically compatible with the old code, but in the case of my last example the use of new standard color def. doesn't work at all, because it is seen by the compiler as an integer.
Currently I am using this for TColor replacement, I suppose I could even add many items to this for graphics functions that already exists in the libraries somewhere, but mark them as inline etc.
TColorRec = Record
Case Byte of
0:(R,G,B,A:Byte);
1:(C:GraphType.TGraphicsColor);
End;
This solves my Overloading issues along with some help of Function Generics.
Jamie