CALL "W$CENTER_WINDOW" USING windowHandle, [screenIndex] |
windowHandle | HANDLE OF WINDOW | Specifies the window to be centered. |
screenIndex | PIC 9(n) | Optional parameter. Specifies in which monitor the window should be centered in case that multiple monitors are available. In a multi-monitor environment, the window would be centered in the monitor where it was displayed. Set this parameter to move the window in another monitor and center it there. Note - the SCREEN-INDEX property of the window will be altered according to this parameter. |
working-storage section. 77 hWin handle of window. procedure division. main. display independent graphical window color 65793 with system menu title "Centered window" handle hWin event WIN-EVT call "w$center_window" using hWin. |