Edit Text View
An edit text view supports editing form values on a screen. This can be for new entry as well as editing existing values defined by the module.
General Information
Section titled “General Information”Properties
Section titled “Properties”| Property | Description |
|---|---|
textStyle | Sets the standard (non-focus) text style. See Text Styles in MCI |
focusTextStyle | Sets the focus text style. See Text Styles in MCI |
width | Sets the width of a view for the text edit (default 15) |
argName | Sets the argument name for this value in the form |
maxLength | Sets the maximum number of characters that can be entered |
focus | Set to true to capture initial focus |
justify | Sets the justification of the text entry. Options: left (default), right, center |
fillChar | Specifies a character to fill extra space in the text entry with. Defaults to an empty space |
prefixFormat | Optional prefix displayed before the typed text. Supports pipe color codes (e.g. "|15{userName}|07> "). The {userName} token is substituted at init time by modules that support it (e.g. sysopChat). The prefix is purely visual — getData() returns only what the user typed. Cursor position and horizontal scroll account for the prefix width automatically. |
Pipe codes and MCI codes in the text
Section titled “Pipe codes and MCI codes in the text”An edit text view shows the text it edits. A pipe colour code such as |04 in the text, whether the user typed it or the field was given it (a value the user saved earlier, such as their location, or a text set in the menu), is shown as typed: |04 takes three columns. The value saved is the text as shown.
MCI codes in the text (|UN, {UN}) are not replaced either: they are part of the value being edited. To fill a field with a value from the system, use a reference in the menu, for example text: @sysStat:sysop_username.
Sysop chat’s input line is the exception: it previews colour codes as colour while you type. See Sysop Chat.
Example
Section titled “Example”![]()
Configuration fragment (expand to view)
ET1: { maxLength: @config:users.usernameMax argName: username focus: true}