Show TOC

Background documentationEmbedding Modal Dialog Boxes Locate this document in the navigation structure

 

Calling a single screen is a special case of embedding a screen sequence. If you want to prevent the called screen from covering the current screen completely, you can use the CALL SCREEN statement with the STARTING AT and ENDING AT options:

Syntax Syntax

  1. CALL SCREEN dynnr
  2.       STARTING AT X1 Y1
  3.       ENDING AT   X2 Y2
End of the source code.

This calls the screen number scrn as a modal dialog box. This means that during the dialog box display the screen behind it is visible but inactive. The options STARTING AT and ENDING AT define the start and end positions of the dialog box. In the screen attributes of screen scrn, you must set the Modal dialog box attribute. This defines how the interface elements are positioned on the screen.

This graphic is explained in the accompanying text.