TESBBaseNumericEdit Object Properties Methods |
Unit
QESBPCSNumEdit
Declaration
TESBBaseNumericEdit = class(TESBBaseEdit)
Hierarchy
TCustomEdit <--TESBCustomEdit <--TESBBaseEdit <--TESBBaseNumericEdit
Direct subclasses
TESBPercentEdit TESBPosEdit TESBPosFloatEdit
Description
This Component is not actually used itself but as the Parent of the other controls.
This adds Displaying a Blank Field when the value is Zero, framework for handling of Floats and Integers.
Edit Control has Alignment and ReadOnly Color Changing. Includes 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.
ColorFontPos and ColorFontNeg can be used so that Positives (or to be more precise non-negatives) and Negatives appear in a different Color.
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 |
![]() | BlankWhenZero | When enabled, the Edit Box will display "Empty" when the Value is Zero. |
![]() | ColorFontNeg | Font Color for the field when it contains a Negative Value. |
![]() | ColorFontPos | Font Color for the field when it contains a non-Negative Value Color is changed, if required, when the field is exited. |
![]() | ShowPosSign | When enabled, the Edit Box will display a '+' sign for Positive Values. |
![]() | ThousandSeparators | Controls how Thousand Separators as defined in your Regional Settings, are displayed in the control. |
![]() | UseSignToggling | When Enabling, Pressing '+' will Toggle ShowPosSign. |
![]() | ZeroPad | When Enabled and MaxLength greater than 0 will LeftPad with Zeros if necessary. |
Introduced Methods |
![]() | Create | ![]() | Creates the Edit Component. |
|