Lazarus 4.1 (rev lazarus_4_0-77-gc52a98dba2) FPC 3.3.1 i386-win32-win32/win64
Trying to compile my control, that builds in Lazarus 4.0.
I get :
scales.pas(99,31) Error: This kind of property cannot be published for
property Format : TFormat read FDisplayFormat write SetDisplayFormat;
in:
TDisplayFormat = class(TPersistent)
private
FParent : TWinControl;
FDisplayFormat: TFormat;
FPrecision : UInt8;
public
constructor Create(aParent: TWinControl); //override;
destructor Destroy; override;
procedure SetDisplayFormat(Value: TFormat);
procedure SetPrecision(Value: UInt8);
published
property Format : TFormat read FDisplayFormat write SetDisplayFormat;
property Precision : UInt8 read FPrecision write SetPrecision;
end;
TFormat is
TFormat = (FloatingPoint = 0, Scientific = 1, Binary = 3, Octal = 4, Hexadecimal = 5, RelativeTime = 6, AbsoluteTime = 7, SINotattion = 8, AutomaticFormatting = 9, Decimal = 9);
Then I tried TLazSerial, added comments for two properties (one with a space after // and another without a space), and they are shown, so the issue seems to be fixed (see the image attached).
Another oddity that I noticed is that loading APKs is very slow (the time from selecting an LPK from the file dialogue until the LPK window is shown).