forked from kurowskicisa/EIB-HMG
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathCenterMainWindow.prg
33 lines (21 loc) · 1.01 KB
/
CenterMainWindow.prg
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
*-----------------------------------------------------------------------------*
#include "eib_hmg.ch"
*-----------------------------------------------------------------------------*
*-----------------------------------------------------------------------------*
PROCEDURE CenterMainWindow()
*-----------------------------------------------------------------------------*
DECLARE WINDOW win_Main
win_Main.Row := ( GetDesktopRealHeight() / 2 ) - ( APP_HEIGHT / 2 )
win_Main.Col := ( GetDesktopRealWidth() / 2 ) - ( APP_WIDTH / 2 )
do_events()
APP_ROW := win_Main.Row
APP_COL := win_Main.Col
do_events()
aFrm[ 1 , 2 ] := APP_ROW
aFrm[ 1 , 3 ] := APP_COL
do_events()
*-----------------------------------------------------------------------------*
RETURN
*-----------------------------------------------------------------------------*
*-----------------------------------------------------------------------------*
*-----------------------------------------------------------------------------*