Skip to content

TWebMaskEdit

Description

Below is a list of the most important properties methods and events for TWebMaskEdit. TWebMaskEdit is an edit control with a edit mask capability that controls what character(s) can be typed at what position in the edit control, similar to a VCL TMaskEdit.

Designtime

EditMask property set to: !99/99/00;1;_
Runtime

Properties for TWebMaskEdit

Property Description
Alignment Sets the alignment of the entered text in the edit control
AutoSelect When true, all text gets selected when the control gets focus
AutoSize When true, the width of the control adapts to the text
BorderStyle Sets the border style for the control
CharCase Controls whether characters are automatically entered as lowercase, uppercase or entered as typed.
EditMask Sets the mask for the inplace editor. The mask that can be used for the TWebMaskEdit is compatible with the mask available for a VCL TMaskEdit control. The description of the mask capabilities can be found here: https://docwiki.embarcadero.com/Libraries/Tokyo/en/System.MaskUtils.TEditMask
EditText Sets & gets the value of the edit control without taking the mask in account
ElementClassName Optionally sets the CSS classname for the spin control when styling via CSS is used
ElementID Optionally sets the HTML element ID for a HTML element in the form HTML file the spin control needs to be connected with. When connected, no new spin control is created but the Delphi class is connected with the existing HTML element in the form HTML file
ShowFocus When true, the border color changes when the control has focus
TabOrder Sets the tab order of the control
TabStop When true, the focus is turned to the control when pressing tab
Text Sets or gets the text in the edit control

Events for TWebMaskEdit

Property Description
OnChange Event triggered when the value of the spin edit control changes from the UI
OnClick Event triggered when the control is clicked
OnDblClick Event triggered when the control is doubleclicked
OnEnter Event triggered when the control gets focus
OnExit Event triggered when focus leaves the control
OnKeyDown Event triggered on key down in the edit control
OnKeyPress Event triggered on key press in the edit control
OnKeyUp Event triggered on key up in the edit control