Add Pop-Up Window (QUIADDPW) API


  Required Parameter Group:


  Optional Parameter Group:


  Default Public Authority: *USE

  Threadsafe: No

The Add Pop-Up Window (QUIADDPW) API begins the ability to display panels within a pop-up window. All subsequent panel displays for the open application remain in the pop-up window until the Remove Pop-up Window (QUIRMVPW) API is called, or until the QUIADDPW API is called again to add another pop-up window. The maximum number of pop-up windows that can be added to an open application is 20.


Authorities and Locks

None.


Required Parameter Group

Application handle
INPUT; CHAR(8)

The application handle assigned by the UIM and returned to the application program by the Open Display Application (QUIOPNDA) API when the application is opened.

Pop-up window location
INPUT; CHAR(10)

The name of a field used for field-adjacent positioning. Field-adjacent positioning places a pop-up window near a field on the underlying panel. The field name must correspond to a name specified on the NAME attribute on one of the following tags of the immediately underlying panel or pop-up window:

  • Command Line (CMDLINE)
  • Data Item Group (DATAGRP)
  • Data Item (DATAI)
  • List Column (LISTCOL)
  • List Column Group (LISTGRP)
  • Menu Item (MENUI)
  • Option Line (OPTLINE)

One of these special values may be used to position the window:


Row
INPUT; BINARY(4)

The absolute row used when row and column positioning is requested. The value is either a positive or negative integer.

If a negative integer is provided, the last row for the pop-up window is calculated using the absolute value of the integer, relative to the bottom of the display. A pop-up window cannot begin in row one, and a minimum-depth pop-up window must fit at the specified first row.

When a negative integer is provided, the absolute location of the window is determined by the size of the first panel displayed in the pop-up window. If another panel is displayed in the same window with a smaller width or depth, the location is not recalculated based on the negative integer. If another panel is displayed in the same window with a larger width or depth, the window is changed to use offset positioning.

Column
INPUT; BINARY(4)

The absolute column used when row and column positioning is requested. The value is either a positive or a negative integer.

If a negative integer is provided, the last column for the pop-up window is calculated using the absolute value of the integer, relative to the right side of the display. A pop-up window cannot begin in column one, and a minimum-width pop-up window must fit at the specified first column.

When a negative integer is provided, the absolute location of the window is determined by the size of the first panel displayed in the pop-up window. If another panel is displayed in the same window with a smaller width or depth, the location is not recalculated based on the negative integer. If another panel is displayed in the same window with a larger width or depth, the window is changed to use offset positioning.

Error code
I/O; CHAR(*)

The structure in which to return error information. For the format of the structure, see Error code parameter.


Optional Parameter Group

Depth
INPUT; BINARY(4)

The depth of the pop-up window to be displayed.

If the depth is specified on a panel without a TEXT area defined, it will be ignored and the depth specified on the PANEL tag will be used. If the depth specified on the API is larger than the depth specified on the PANEL tag, the depth specified on the API will be used.

The maximum supported depth for a pop-up panel depends on what the display device can support. On a device that can only support 24 rows by 80 bytes, the maximum depth of a pop-up window is 21 lines. On a device that can support 27 rows by 132 bytes, the maximum depth of a pop-up window is 24 lines.

The minimum allowed depth is 5 lines.

The special value of 0 may be specified to indicate that the depth on the PANEL tag should be used. The default value is 0.


Error Messages



API introduced: V2R2

[ Back to top | User Interface Manager APIs | APIs by category ]