From 8890938b93443369c1ee42e2c9f7775411a7b33d Mon Sep 17 00:00:00 2001 From: dsiders Date: Mon, 20 Jun 2022 15:59:05 +0100 Subject: [PATCH] Docs: LCL/spin. Removes extra spaces in topics. --- docs/xml/lcl/spin.xml | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/docs/xml/lcl/spin.xml b/docs/xml/lcl/spin.xml index 16490d2e46..9de75ec6a0 100644 --- a/docs/xml/lcl/spin.xml +++ b/docs/xml/lcl/spin.xml @@ -144,7 +144,7 @@ Change is an overridden method in TCustomFloatSpinEdit. It ensures that the value in Modified is updated when the widgetset class applies a new value for the control. An internal flag is used to determine if Modified is set to False prior to calling the inherited Change method. The flag is set when a new value is applied to the Value property in program code (instead of using the UI elements for the control). This is performed here because the widgetset class calls Changed and not TextChanged.

- Change calls the inherited method where the CM_CHANGED control message is posted, and assigned OnChange handlers are signalled for the control. + Change calls the inherited method where the CM_CHANGED control message is posted, and assigned OnChange handlers are signalled for the control.

@@ -162,7 +162,7 @@ EditingDone is an overridden method in TCustomFloatSpinEdit. It ensures that the control is updated when editing has been completed.

- EditingDone calls the UpdateControl method to normalize and validate the control Value using the assigned range in MinValue and MaxValue. This includes calling GetLimitedValue to update the control Value when both MinValue and MaxValue contain a valid range. The value in the widgetset class is updated when component streaming is not active, and the control is not being freed. + EditingDone calls the UpdateControl method to normalize and validate the control Value using the assigned range in MinValue and MaxValue. This includes calling GetLimitedValue to update the control Value when both MinValue and MaxValue contain a valid range. The value in the widgetset class is updated when component streaming is not active, and the control is not being freed.

EditingDone calls the inherited method to signal the OnEditingDone event handler (when assigned) when ReadOnly is False. @@ -314,7 +314,7 @@ Handles key press events for the control.

- KeyPress is an overridden method used to handle key press events for the control. KeyPress calls the inherited method on entry. If the character in Key is not handled in the ancestor class, the argument is examined to determine if it is valid for the control. If Key is not a valid character, it is set to #0 to ignore the key press event. + KeyPress is an overridden method used to handle key press events for the control. KeyPress calls the inherited method on entry. If the character in Key is not handled in the ancestor class, the argument is examined to determine if it is valid for the control. If Key is not a valid character, it is set to #0 to ignore the key press event.

KeyPress disallows any value in Key that is not a numeric digit, sign character ('+' or '-'), scientific exponentiation symbol ('E' or 'e'), or decimal point character ('.' or ','). The decimal point is automatically converted to the value used in the DefaultFormatSettings variable from the RTL. The decimal point is not allowed when Decimals is set to 0 (zero). @@ -492,7 +492,7 @@ The value for the spin edit control.

- Value is a Double property which contains the value for the spin edit control. Its content can be modified using the UI elements for the control (up and down buttons, up and down cursor keys, edit box for the control). It can also be directly assigned in program code. + Value is a Double property which contains the value for the spin edit control. Its content can be modified using the UI elements for the control (up and down buttons, up and down cursor keys, edit box for the control). It can also be directly assigned in program code.

Changing the value for the property causes the Text for the control to be checked for a valid numeric representation in the property. If the new property value is the same as the existing value, no actions are performed.