![]() Properties Methods |
Unit
QESBPCSNumEdit
Declaration
TESBPosFloatEdit = class(TESBBaseNumericEdit)
Hierarchy
TCustomEdit <--TESBCustomEdit <--TESBBaseEdit <--TESBBaseNumericEdit <--TESBPosFloatEdit
Direct subclasses
TESBFloatEdit
Description
Use AsFloat to Read/Write the Extended Value ThousandSeparators can control the output, Thousand Separators are ignored in input.
Decimals controls the number of decimal places shown/stored.
Sign Toggling means if a '+' is pressed then it is displayed, and if pressed again it disappears. If Sign Toggling is disabled ShowPosSign can be set to show '+' signs
BlankWhenZero displays a Blank Field when the value is Zero.
ZeroPad is used with MaxLength (can't be 0) to fill the field to the left with Zeroes.
Edit Control also has Alignment and ReadOnly Color Changing. Includes Methods to return the Text already Trimmed and in different cases, as well as Bounds Validation.
Flat controls whether the control has a MS Office 97/2000 type behaviour, where the "look" changes when the control has focus or the mouse passes over it. ColorBorderFocus & ColorBorderUnfocus are used for Border colors when the Control is Flat.
OnMouseEnter & OnMouseExit - allow you to set up your own "hot" controls if the Flat look'n'feel is not what you are after.
Null allows an edit field to be marked as having no proper value, and it will then display whatever NullStr is set to. Ctrl-N is the Keyboard entry for Null if AllowKbdNull is true. OnNullEvent is called when the Keyboard entry of Null is permitted.
ColorRW replaces the normal Color Property of Standard Edit Controls.
By default Read Only fields will be shown in a different Color, to disable this set ColorRW and ColorRO to the same, eg clWindow. clBtnFace is often a better choice for ColorRO on older Video Cards and older Notebooks
ColorFocus can be used so that the Color of the edit field changes when it receives focus (provided it is not ReadOnly). To use this feature ColorFocus must be set to a different value than ColorRW but beware the various Color combinations that result.
ColorDisabled controls the Color of the Control when Disabled, ie Enabled := False.
If ESBEnterAsTab is true then the Enter Key will be treated as though it were the Tab Key.
If ESBEscAsUndo is true then the Esc Key will be cause an Undo to occur in the field.
If ESBArrowsAsTab is true then Up Arrow will move to previous field like Shift-Tab, and Down Arrow will move to next field like Tab.
Introduced Properties |
![]() | AsFloat | Allows access to the Edit Field as a Float. |
![]() | AsScaledFloat | Allows access to the Scaled Value (Displayed) |
![]() | BoundLower | If Validation is Enabled, then this value is used for rejecting any values less than it. |
![]() | BoundUpper | If Validation is Enabled, then this value is used for rejecting any values greater than it. |
![]() | CustomDecimal | When CustomSeparators is True, this value is used for the Decimal Separator rather than the System Value. |
![]() | CustomSeparators | When True CustomThousands and CustomDecimal are used for the Thousands Separator and Decimal Separator respectively rather than the System Values. |
![]() | CustomThousands | When CustomSeparators is True, this value is used for the Thousands Separator rather than the System Value. |
![]() | DecimalPlaces | Number of Decimal Places to be displayed. |
![]() | ForceDecimals | When true doesn't allow the user to enter more than the specified number of decimal places. |
![]() | FullAccuracy | Underlying Value stored to Full Accuracy. |
![]() | Scale | Value Displayed is the Underlying Value divided by Scale. |
![]() | TrimTrailingZeroes | When enabled, Trailing Zeroes to the right of the decimal point are removed, and if no decimal places at all then the Decimal Point is removed. |
Introduced Methods |
![]() | Create | ![]() | Creates the Edit Component. |
|