Came across an interesting bug I think (could be me not doing something correct).
Windows 11, Laz 3.0 (3-29-2024 build) FPC 3.22
Here is the issue...
I have a component that has various properties, when any of the properties that has a type of 'single' is set to 0 in the design time properties for a this visual component it does not appear in the .lfm file.
Screen shot attached.
In this case the MinValue is -10 and the MaxValue is 0, and the file now removed the MaxValue propert from it. Same if I change the MinValue to 0 and MaxValue to 360, the MinValue drops out of the file and MaxValue appears.
What then happens is that since this is not loaded, the value from the constructor is used and not set from the load of the .lfm (hope that makes sense).
Code for the property MinValue/MaxValue
property MinValue : Single read FMinValue write SetMinValue;
property MaxValue : Single read FMaxValue write SetMaxValue;
Might be something subtle that needs to be done with 'single' floating point types but didn't find much searching the forums.
Sandy