Recent

Author Topic: [SOLVED] TSpinEdit.MaxValue  (Read 367 times)

apeoperaio

  • Full Member
  • ***
  • Posts: 237
[SOLVED] TSpinEdit.MaxValue
« on: June 08, 2022, 10:39:18 am »
Hi all,

I noticed a different behaviour of TSpinEdit under Windows and macOS (cocoa).
On windows when I put a TSpinEdit on a form the MinValue is set to 0 and MaxValue to 100. On macOS the Minvalue is set to 0 and the MaxValue to 0 (instead of 100).
Additionally, on Windows if I set a MinValue greater than MaxValue the MaxValue is automatically updated to MinValue. It does not happen on macOS.
It means that if I set only MinValue (to a value greater than 0), the TSpinEdit will work on Windows but not on macOS.

Andrea

Lazarus 2.2.3 (rev lazarus_2_2_2-13-gc7f93033ac) FPC 3.2.0 x86_64-darwin-cocoa
« Last Edit: June 08, 2022, 04:44:35 pm by apeoperaio »

wp

  • Hero Member
  • *****
  • Posts: 10060
Re: TSpinEdit.MaxValue
« Reply #1 on: June 08, 2022, 12:03:30 pm »
Do you use the same Laz versions on Windows and mac? In Laz 2.2+, the default value of SpinEdit.MaxValue was changed (https://wiki.freepascal.org/Lazarus_2.2.0_release_notes#T.28Float.29SpinEdit.28Ex.29_default_value_for_MaxValue_changed).

apeoperaio

  • Full Member
  • ***
  • Posts: 237
Re: TSpinEdit.MaxValue
« Reply #2 on: June 08, 2022, 04:44:09 pm »
Got it!
I am using a previous version on Windows. I updated my source to be compliant with lazarus 2.2+

Thank you!
« Last Edit: June 08, 2022, 04:48:27 pm by apeoperaio »

 

TinyPortal © 2005-2018