Creating a Pop-up Window

 

Sample code:
Display file source:                 PUISAMPLES/QDDSSRC(CHECK001D)
RPGLE source:                      PUISAMPLES/QRPGLESRC(CHECK001R)

To create a record format that acts like a pop-up window, select one of the panel widgets from the Widgets Toolbox and drag it onto the canvas.  You can change the panel's title by double-clicking the element.



You can also add a close button to the panel's title bar by dragging it from the Widgets Toolbox and setting the response property to an indicator that will be set on when the user closes the window.

Once you finalize the position and size of the panel, you can lock it in place and drag other widget elements over top of it.  Then, select screen properties by clicking the canvas, and set show as window to true.



You can determine the position of the panel by specifying window left and window top properties, or by setting the center window property to true.

As with any other screen, use the ExFmt operation in your RPG code to display the panel.  When the format is displayed at runtime, it will now pop up as a window on top of the previous screen.  The user will be able to move the window by dragging its title bar.



Note: The pop-up window is not a true browser window, and therefore will not be detected by pop-up blockers within the user’s browser.

Sample code:
Display file source:                 PUISAMPLES/QDDSSRC(CHECK001D)
RPGLE source:                      PUISAMPLES/QRPGLESRC(CHECK001R)

To create a record format that acts like a pop-up window, select one of the panel widgets from the Widgets Toolbox and drag it onto the canvas.  You can change the panel's title by double-clicking the element.



You can also add a close button to the panel's title bar by dragging it from the Widgets Toolbox and setting the response property to an indicator that will be set on when the user closes the window.

Once you finalize the position and size of the panel, you can lock it in place and drag other widget elements over top of it.  Then, select screen properties by clicking the canvas, and set show as window to true.



You can determine the position of the panel by specifying window left and window top properties, or by setting the center window property to true.

As with any other screen, use the ExFmt operation in your RPG code to display the panel.  When the format is displayed at runtime, it will now pop up as a window on top of the previous screen.  The user will be able to move the window by dragging its title bar.



Note: The pop-up window is not a true browser window, and therefore will not be detected by pop-up blockers within the user’s browser.

Â