HeaderPane
Main
Hide
Share Link
Print

Field Components

An SftMask control is an edit field whose contents follow an edit mask (SftMask.Mask property). The mask defines which characters can be typed at each position, and the constant characters the field shows between them (see Edit Masks). Without a mask, the control is a plain single-line edit field (see Simple Edit Field).

ComponentDescription
Input positionsThe positions where the user types. While the control has the input focus, empty input positions show the prompt character (SftMask.PromptChar property) and the input positions are underlined (see Prompt Characters and Underlines).
LiteralsThe constant characters of the mask, such as parentheses, dashes and separators. The user cannot change them, and typing moves past them. They are shown in the SftMask.LiteralForeColor color, by default the color of the input.
Numeric fieldsGroups of positions holding a number: a decimal, integer or hexadecimal number with optional digit grouping, negative numbers and a range (see Numeric Fields).
LabelA text such as a currency symbol or a unit, shown left or right of the input (SftMask.Label and SftMask.LabelPosition properties, see Label).
Up and down buttonsShown when the SftMask.ButtonStyle property is ButtonStyleEnum.UpDown. They increase and decrease the numeric field containing the caret when its mask uses the ^ subtoken (see Up/Down Buttons and Spinning).
Ellipse buttonShown when the SftMask.ButtonStyle property is ButtonStyleEnum.Ellipse. It raises the SftMask.EllipseClick event, so the application can show its own selection dialog (see Ellipse Button).
Popup calculatorOpens at a numeric field with a calculator when an operator (+, -, * or /) is typed (see Popup Calculator).
AutoComplete listOpens below the field and suggests earlier entries, files or folders while the user types (see AutoComplete).

The buttons are shown at the right end of the field, or at the left end when the SftMask.UpDownAlign property is LeftRightAlignment.Left; the label is shown between the input and the buttons. With a right-to-left layout (RightToLeft property), the sides of the buttons and the label are swapped.