WINDOW

WINDOW

Addition:

... ENDING AT x2 y2

Effect

Displays the current secondary list as a modal dialog box (see CALL SCREEN). The same rules apply as for displaying a list.

The left upper edge of the window is positioned at column x1 and line y1 (y1 must be greater than zero, so that a dialog box appears instead of the full screen).

You can use variables to specify the coordinates.

All the functions for secondary lists are supported. These include:

Effect

Positions the right lower edge of the window in column x2 and line y2.

You can use variables to specify the coordinates.

Example

Define a window covering columns 1 to 79 and lines 15 to 23:

WINDOW STARTING AT 1  15 
	 ENDING   AT 79 23. 
 
WRITE 'Text'.


You can insert the windows described above only within the context of list processing, i.e. not until after an interactive event (see AT LINE-SELECTION).

You can use the technique shown in the example below to insert a window containing a list during a dialog (see CALL SCREEN).

CALL SCREEN 100.	 "Screen of modal dialog box type 
*	STARTING AT 10 10  "... can be started as 
*	ENDING   at 60 15. "... separate window with 
*					 "... these additions

In the flow logic of the screen 100, the processing branches to list processing in the PBO (Process Before Output) module (see LEAVE TO LIST-PROCESSING ).

Flow logic:


PROCESS BEFORE OUTPUT.
MODULE LIST.

Program:

MODULE LIST OUTPUT. 
  LEAVE TO LIST-PROCESSING. 
	AND RETURN TO SCREEN 0. 


PERFORM OUTPUT. "Output list

  LEAVE SCREEN. 
ENDMODULE.