skip to main content

Library Routines : W$CENTER_WINDOW

W$CENTER_WINDOW
The W$CENTER_WINDOW library routine moves the window on the screen in order to have the center of the window matching with the center of the screen.
Syntax:
 CALL "W$CENTER_WINDOW" USING windowHandle
Parameters:
Examples:
Example - Display a independent window and center it on the screen
working-storage section.
77  hWin                  handle of window.
procedure division.
  display independent graphical window
          color  65793
          with   system menu
          title  "Centered window"
          event  WIN-EVT
  call "w$center_window" using hWin.

Copyright (c) 2017 Veryant
Contact us
Please share your comments on this manual or on any
Veryant product documentation with the email button at the top left