WINDOW command

The WINDOW command can be associated with a function key or can be typed on the command line. The cursor placement specifies the new location for the upper-left corner of the pop-up window frame. If the pop-up window does not fit on the physical screen at the specified location, it is repositioned to fit following the current pop-up window positioning rules. The cursor is placed in the same relative position it occupied before a dialog or help pop-up window was moved.

If the cursor location would be covered as a result of moving a modeless message window, the cursor is repositioned to the first input field on the active panel. If an input field does not exist, the cursor is positioned in the upper-left corner of the active panel. The cursor is returned to its intended location if the modeless message window is moved to a location that no longer conflicts with cursor display. Cursor positioning is not affected by an input field that becomes protected as a result of a modeless message window position unless the cursor itself would be covered. In other words, the cursor can be positioned on a protected input field.

The WINDOW command is an immediate action command. Panel processing is not performed when this command is used.

If the WINDOW command is typed in the command line, the cursor should be moved to the desired window position before pressing Enter.

If the WINDOW command is included in the keylist associated with the currently active application panel, the user can move the cursor to any position on the screen, press the function key assigned to the WINDOW command, and the pop-up is repositioned to the user's cursor position. The WINDOW command can be included in the keylist by the application developer, or the user can use the KEYLIST utility to add it to the keylist.

For panels that do not include the KEYLIST keyword in the )PANEL statement, the application can assign the WINDOW command to a ZPFnn system variable. The user can also associate WINDOW with a function key by using the ZKEYS command to access the function key assignment utility.

If the split screen is used, the pop-up cannot be moved to a different logical screen. The new pop-up window location must be in the same logical screen in which the pop-up was originally located. A pop-up is not displayed over the split line. The split line cuts off the pop-up at the split line location; the pop-up is not automatically repositioned to fit above the split line.

Note: Pull Down Choice (PDC), Action Bar is also a pop-up window, so the split screen line cuts off the Action Bar location, too. The pop-up is not automatically repositioned to fit above the split line.

If the WINDOW command is requested when pop-up windows are not active, a message is displayed to the user. A pop-up window containing an Action Bar panel cannot be moved while a pull-down is actively displayed. A message is displayed to the user if the WINDOW command is requested during this condition.