TTMSFNCEdit Class
Single-line edit control with input-type validation, lookup dropdown, and numeric formatting.
API unit family: TMSFNCEdit
Inherits from: TCustomEdit
Syntax
TTMSFNCEdit = class(TCustomEdit)
Properties
| Name |
Description |
| AllowFocus |
When True, the control can receive keyboard focus. |
| AllowNumericNullValue |
When True, an empty string is accepted for numeric edit types instead of defaulting to zero. |
| AutoComplete |
When True, the control suggests matching entries from the lookup list as the user types. |
| AutoThousandSeparator |
When True, thousand separators are inserted automatically while typing numeric values. |
| EditType |
Specifies which input characters or format are accepted by the edit control. |
| FloatValue |
Gets or sets the current text as a floating-point number. |
| FullTextSearch |
When True, the lookup filter matches anywhere in the string instead of only at the start. |
| IntValue |
Gets or sets the current text as an integer number. |
| LengthLimit |
Maximum number of characters allowed; 0 means no limit. |
| Lookup |
Configures the lookup dropdown behavior and data source. |
| Modified |
When True, the text has been changed since the control was last loaded or reset. |
| Precision |
Number of decimal places shown for float and money edit types; 0 uses the format default. |
| PrecisionDisplay |
Controls whether trailing zeros are preserved or trimmed in float display. |
| StyleElements |
Controls which parts of the VCL style are applied to the edit control. Available on Web only. |
| Text |
Gets or sets the current text displayed in the edit control. |
| ValidChars |
Set of characters accepted when EditType is etValidChars. |
| Version |
Returns the component version string. |
Methods
| Name |
Description |
| CanFocus |
Returns True when the edit control is enabled, visible, and able to accept keyboard focus. |
| DisplayLookup |
Opens the lookup dropdown immediately, bypassing the character-count threshold. |
| LookupList |
Returns the popup control that hosts the lookup dropdown. |
| LookupListbox |
Returns the internal list box used by the lookup dropdown. |
Events
| Name |
Description |
| OnLookupClose |
Fires when the lookup dropdown closes. |
| OnLookupIndexSelect |
Fires when the user selects a lookup entry, providing the item index. |
| OnLookupNeedData |
Fires to request filtered data for the lookup dropdown based on the current input. |
| OnLookupOpen |
Fires when the lookup dropdown opens. |
| OnLookupSelect |
Fires when the user selects an entry from the lookup dropdown. |
Used by