Given the following type declaration:
TMyEnum = (onehundred,twohundred,threehundred);
TMyEnum2 = (Aonehundred = 100 , Atwohundred = 200 , Athreehundred = 300);
TMyComponent = class(TComponent)
private
FMyEnum: TMyEnum;
FMyEnum2: TMyEnum2;
published
property MyEnum: TMyEnum read FMyEnum write FMyEnum;
property MyEnum2: TMyEnum2 read FMyEnum2 write FMyEnum2;
end;
using TStream.WriteComponent does not stream MyEnum2. Does anybody know why that is, and if this can be fixed ?
Unfortunately this is a limitation of the streaming system. The documentation says (emphasis mine):
You can’t workaround that easily and would need to provide your own custom streaming.