This example returns a list of the identifying handles of all enabled panels. The example assumes that you have declared Panels-Order-List in the Working-Storage Section of your program as described above.
move pf-get-panel-stack to ppb-function. call "PANELS" using panels-parameter-block. panels-order-list.
Comments:
The first item returned in the list (POL-ID(1)) holds the most recently enabled panel, and so on.