[Lazarus] How to stream TColor in hexadecimal format?
Vojtěch Čihák
vojtech.cihak at atlas.cz
Tue Apr 14 13:19:22 CEST 2015
Thanks,
it does not work. Where should I place such overloaded procedure?
The reason I need it is that the *.xml file is config file so there is a chance that someone will edit it manually.
Or there is possibility to change declaration from TColor to string.
V.
______________________________________________________________
> Od: Mattias Gaertner <nc-gaertnma at netcologne.de>
> Komu: <lazarus at lists.lazarus.freepascal.org>
> Datum: 14.04.2015 02:09
> Předmět: Re: [Lazarus] How to stream TColor in hexadecimal format?
Maybe you can overload
RegisterIntegerConsts(TypeInfo(TColor), TIdentToInt(@IdentToColor),
TIntToIdent(@ColorToIdent));
with your own functions and write colors as "h00FEDCBA".
Mattias
--
_______________________________________________
Lazarus mailing list
Lazarus at lists.lazarus.freepascal.org
http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus <http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.lazarus-ide.org/pipermail/lazarus/attachments/20150414/584e5b83/attachment-0003.html>
More information about the Lazarus
mailing list