OPEN WINDOW attributes

List of attributes for the OPEN WINDOW instruction.

Window attributes reference

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 TYPE attribute.

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.

Defaut line positions for TUI mode

The default line positions in TUI mode are defined by the OPTIONS instruction. See the OPTIONS command reference topic for more details.

Combining TTY attributes and presentation styles

Important: In GUI mode, form elements can also be decorated with presentation styles. Pay attention to the specific rules that apply when combining TTY attributes and presentation styles.