Question ID : 154
Created on 2010-11-01 at 10:28 AM
Author : Veryant Support [support@veryant.com]
Online URL : http://support.veryant.com/support/phpkb/question.php?ID=154
To center a window use W$CENTER_WINDOW. Pass the window handle to this library to center the window on the current screen:
call "W$CENTER-WINDOW" using windowHandleYou can also pass the screen index to center your screen on a different monitor.
call "C$MONITOR" using cmonitor-get-no-monitor monitor-count, main-index. if monitor-count >= 2 call "W$CENTER-WINDOW" using windowHandle, 2 end-if.Use the inquire verb to get the current screen index
inquire windowHandle, screen-index in scr-num.