Multi-line Edit Control (INFLD)

A multi-line edit control is a special case of the standard edit control. See types |M and ||M and ||H in the table above for notes on implementing one. A sample is shown below. Note that although this is a convenient way of editing and displaying a free format block of text, it is suitable for a maximum of about 1600 and has various other limitations. For a more powerful text editing control, see XTEXT.

 

The SCRSTS.SBX subroutine uses a multi-line edit control in display-only mode to implement a scrolling status window. It is available, along with sample programs, from EXLIB.

Note that when INFLD is in multi-line mode (|M or ||M) and up/down exits are enabled (3 and 5), and is not using Windows keyboard conventions (i.e. not specifying |K), then the Up/Down Arrows will cause INFLD to exit if used when the cursor is already on the first or last line of the control. Note that the last line is defined as the line containing text.