I am working with a Delphi FMX application and need to add a new property to one of my components. The property is an array of TAlphaColor
, defined as Colors: TArray<TAlphaColor>;
. I am curious about how this property would be represented in the component’s paired .fmx
file. Specifically, I’m looking to understand if it’s possible to store an array of values like Colors: [125487, 159875]
directly in the .fmx
file, and if so, how this is typically done.
From what I’ve researched, it seems that TPropertyEditor
could be related to handling custom properties in the IDE, but I’m not sure if it also influences how properties are stored or read from .fmx
files. As far as I understand, TPropertyEditor
is mainly for adding a custom editor within the IDE and not necessarily for modifying how data is serialized or deserialized in .fmx
files.
Questions:
- Is it possible to serialize an array of
TAlphaColor
directly in a.fmx
file? - If yes, how can I format the array in the
.fmx
file to ensure correct loading and saving of the property?
Any guidance or references to relevant documentation would be greatly appreciated!