Checked with Delphi 7 and XE10.3:
* MaxValue=-10, Minvalue=10 --> ok, there is no error message, but also, there is no unlimited spinning: clicking the spin buttons makes the edit jump between -10 and 10 without the intermediate values.
I refer you to the comments in GetLimitedValue.
The Delphi behaviour with MaxValue<MinValue is idiotic, and it is exactly this reason why I decided
not to implement this.
As I said before: there is no reason to duplicate the bugs of Delphi.
I cannot imagine that you would also want to implement this like D7 (and IIRC also D3) does?
And yes, I do agree that it feels a bit counter-intuitive that setting MaxValue<MinValue also "unlimits" the control.
Nevertheless: having MaxValue<MinValue is
not illegal for TSpinEdit, not in Lazarus and also not in Delphi.
Therefore the IDE should
not disallow that IMHO.
But I am not going to start a war about that part.
If more devels find this should be implemented, I will go ahead and do so.
Of course, one can expect yet another bugreport about this behaviour when this will be the case.
And then requests to make it also kike this when setting MaxValue<MinValue in code.
And then we have bugs loading LFM's and all this will start over and over again.
Bottom line is that bugs needed to be fixed.
The old behaviour was wrong and the new behaviour is not the old behaviour, so not backwards compatible.
Unfortunately, sometimes this cannot be avoided and IMO this is such a case.
Bart