On Sat, 30 Jun 2007, Graeme Geldenhuys wrote:
> Hi, > > TFPCustomFont has a property as follows: > property FPColor : TFPColor ... > > TFPColor is a record compared to Lazarus and Delphi's Color property > being TColor with is a LongWord. > If I persist a Form containing a Label to a .dfm or .lfm or whatever > extension I want to use. Will the internal TWriter of TComponent be > able to write a TFPColor property to file? Or will I have to do some > magic in TWriter or implement a Color: TColor property in my > components? > > If the later is needed, why doesn't TFPCustomCanvas implement the > FPColor property like Lazarus and Delphi using TColor (LongWord). Because TFPColor is a 64-bit structure. When it was implemented, streaming was not a consideration. Michael. _______________________________________________ fpc-pascal maillist - fpc-pascal@lists.freepascal.org http://lists.freepascal.org/mailman/listinfo/fpc-pascal