Please enable JavaScript to view this site.

A-Shell Reference

Navigation: Subroutines > AUI > AUI_CONTROL > Control Types

Multi-line Edit Control (INFLD)

Scroll Prev Top Next More

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 4000 characters and has various other limitations. For a more powerful text editing control, see XTEXT.

ashref_img121

 

The SCRSTS.SBX subroutine uses a multi-line edit control in display-only mode to implement a scrolling status window. Source code is available, along with sample programs, in the SOSLIB:[907,20].

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.