[Lazarus] How to stream TColor in hexadecimal format?

Vojtěch Čihák vojtech.cihak at atlas.cz
Mon Apr 13 23:49:50 CEST 2015


Hello,
 
how to stream TColor in hexadecimal format?
 
Currently, TColor is streamed as
 
Color = 5810431
Color = clTeal
 
in *.lfm or
 
<integer name="ClrDWBCurve" value="33023"/>
<ident name="ClrSF2Curve" value="clRed"/>
 
in *.xml.
How can I stream it in $00FEDCBA format?
 
In the worst case, I probably can move those properties from published to public and TPersistent.DefineProperties.
Will it work? Or is there some more elegant way?
 
Thanks for help, V.




More information about the Lazarus mailing list