home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
OS/2 Shareware BBS: 18 REXX
/
18-REXX.zip
/
vxtech06.zip
/
VXTECH06
/
EMPLIST
/
WINPOS.VRX
< prev
Wrap
Text File
|
1994-04-25
|
628b
|
33 lines
/*:VRX Main
*/
Main:
parse arg hWnd, hPos, vPos
sHeight = VRGet( "Screen", "Height" )
sWidth = VRGet( "Screen", "Width" )
height = trunc( sHeight/2 )
width = trunc( sWidth/2 )
height = Max( height, 6000 )
width = Max( width, 6000 )
if Translate( hPos ) = "TOP" then do
top = 0
end
else do
top = sHeight - height
end
if Translate( vPos ) = "LEFT" then do
left = 0
end
else do
left = sWidth - width
end
call VRSet hWnd, "Left", left, "Top", top, "Height", height, "Width", width
exit