Re: [Lazarus] How to stream TColor in hexadecimal format?

2015-04-14 Thread Vojtěch Čihák
. __ Od: Mattias Gaertner Komu: 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

Re: [Lazarus] How to stream TColor in hexadecimal format?

2015-04-13 Thread Mattias Gaertner
On Mon, 13 Apr 2015 23:49:50 +0200 Vojtěch Čihák wrote: >[...] > how to stream TColor in hexadecimal format? >   > Currently, TColor is streamed as >   > Color = 5810431 > Color = clTeal >   > in *.lfm or As far as I know the underlying TAbstractObjectWriter does not support hexadecimal.   >

[Lazarus] How to stream TColor in hexadecimal format?

2015-04-13 Thread Vojtěch Čihák
Hello,   how to stream TColor in hexadecimal format?   Currently, TColor is streamed as   Color = 5810431 Color = clTeal   in *.lfm or     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.DefineP