From 5e67b02e819531ad5730439a1e90a2eb532ef55c Mon Sep 17 00:00:00 2001 From: dsiders Date: Sun, 28 Nov 2021 04:45:51 +0000 Subject: [PATCH] Docs: LazControls/spinex. Adds topics for overloaded SameValue() methods in TCustomFloatSpinEditEx and TCustomSpinEditEx. * Depends on 182cc8b8e6, 7f45938388, 5523c58bc9 0e5fdc884a, c301731931. (cherry picked from commit 15e62fda4d7a91bca79168bdcef8ff956630715f) --- components/lazcontrols/docs/spinex.xml | 68 +++++++++++++++++++++++++- 1 file changed, 66 insertions(+), 2 deletions(-) diff --git a/components/lazcontrols/docs/spinex.xml b/components/lazcontrols/docs/spinex.xml index 9224d36e31..733a00b08e 100644 --- a/components/lazcontrols/docs/spinex.xml +++ b/components/lazcontrols/docs/spinex.xml @@ -529,16 +529,24 @@ Determines whether the specified arguments have the same value.

- SameValue is a Boolean function used to compare the values in AValue1 and AValue2 to determine if they have the same value. SameValue calls the overloaded SameValue routine in the math.pp unit to get the return value for the method. The return value is True when both AValue1 and AValue2 have the same value. + SameValue is a Boolean function used to compare the values in AValue1 and AValue2 to determine if they have the same value. The return value is True when both AValue1 and AValue2 have the same value. It is defined as an abstract virtual method in TSpinEditExBase, and must be implemented in descendent classes to compare the data type for the specialization.

- This method was introduced to ensure that the type specialization for the class instance is used when value comparisons are performed. Specifically, it allows the 64-bit compiler on Windows to determine which of the overloads in Math.SameValue is called for the Currency type. + SameValue is used in the implementation of storage specifiers for the Increment, MinValue, and MaxValue properties. +

+

+ SameValue is defined when using FPC compiler version 3.2.2 on the Windows 64-bit platform. This method was introduced to ensure that the type specialization for the class instance is used when value comparisons are performed. Specifically, it allows the 64-bit compiler on Windows to determine which of the overloads in Math.SameValue is called for the Currency type.

Introduced in version 2.2.0. + + + + + Math.SameValue @@ -1298,6 +1306,34 @@ Numeric value decremented in the method. + + Determines whether the specified arguments have the same value. + +

+ SameValue is an overridden Boolean function used to compare the values in AValue1 and AValue2 to determine if they have the same value. The return value is True when both AValue1 and AValue2 have the same value. The arguments are implemented using the Double type in TCustomFloatSpinEditEx. The overloaded SameValue routine in the math.pp unit is called to get the return value for the method. +

+

+ SameValue is defined when using FPC compiler version 3.2.2 on the Windows 64-bit platform. This method was introduced to ensure that the type specialization for the class instance is used when value comparisons are performed. Specifically, it allows the 64-bit compiler on Windows to determine which of the overloads in Math.SameValue is called for the Currency type. +

+
+ + Introduced in version 2.2.0. + + + + Math.SameValue + +
+ + True if both arguments have the same value. + + + First value for the comparison. + + + Second value for the comparison. + + Sets the value for the DecimalPlaces property. @@ -1756,6 +1792,34 @@ Numeric value decremented in the method. + + Determines whether the specified arguments have the same value. + +

+ SameValue is an overridden Boolean function used to compare the values in AValue1 and AValue2 to determine if they have the same value. The return value is True when both AValue1 and AValue2 have the same value. The arguments are implemented using the Int64 type in TCustomSpinEditEx. +

+

+ SameValue is defined when using FPC compiler version 3.2.2 on the Windows 64-bit platform. This method was introduced to ensure that the type specialization for the class instance is used when value comparisons are performed. +

+
+ + Introduced in version 2.2.0. + + + + Math.SameValue + +
+ + True if both arguments have the same value. + + + First value for the comparison. + + + Second value for the comparison. + + Indicates if the specified String contains a valid Int64 data type.