OPEN WINDOW attributes

List of attributes for the OPEN WINDOW instruction.

Table 1. Window-attributes supported by the OPEN WINDOW statement
Attribute Description
TEXT = string

Defines the default title of the window. When a form is displayed, the form title (LAYOUT(TEXT="mytitle")) will be used as window title.

Tip: We recommend that you define the window title in the form file.
STYLE = string

Defines the default style of the window. If the form defines a window style, (LAYOUT(WINDOWSTYLE="mystyle")), it overwrites the default window style.

Tip: We recommend that you define the window style in the form file.
TYPE = [LEFT|RIGHT| POPUP|NAVIGATOR]

Defines the window type. According to the type specified, the window will appear differently, following front-end platform GUI standards. For example, on iOS devices, a window created with TYPE=POPUP will show up from the bottom of the screen. See Window types.

BLACK, BLUE, CYAN, GREEN, MAGENTA, RED, WHITE, YELLOW

Default TTY color of the data displayed in the window.

BOLD, DIM, INVISIBLE, NORMAL

Default TTY font attribute of the data displayed in the window.

REVERSE, BLINK, UNDERLINE

Default TTY video attribute of the data displayed in the window.

PROMPT LINE integer

In character mode, indicates the position of the prompt line for this window. The position can be specified with FIRST and LAST predefined line positions.

FORM LINE integer

In character mode, indicates the position of the form line for this window. The position can be specified with FIRST and LAST predefined line positions.

MENU LINE integer

In character mode, indicates the position of the ring menu line for this window. The position can be specified with FIRST and LAST predefined line positions.

MESSAGE LINE integer

In character mode, indicates the position of the message line for this window. The position can be specified with FIRST and LAST predefined line positions.

ERROR LINE integer

In character mode, indicates the position of the error line for this window. The position can be specified with FIRST and LAST predefined line positions.

COMMENT LINE {OFF|integer}

In character mode, indicates the position of the comment line or no comment line at all, for this window. The position can be specified with FIRST and LAST predefined line positions.

BORDER

Indicates if the window must be created with a border in character mode. A border frame is drawn outside the specified window. This means, that the window needs 2 additional lines and columns on the screen.

The following list describes the default line positions in character mode:

  • First line: Prompt line (output from PROMPT statement) and Menu line (command value from MENU statement).
  • Second line: Message line (output from MESSAGE statement; also the descriptions of MENU options).
  • Third line: Form line (output from DISPLAY FORM statement).
  • Last line: Error line (output from ERROR statement). Also comment line in any window except SCREEN.