Follow along with the video below to see how to install our site as a web app on your home screen.
Note: This feature may not be available in some browsers.
I just squeezed the _screen of the foxpro IDE, so the sysemnu takes one vs. two lines.
It doesn't help me as I would have to pass the MENU as an object, which I can't seem to do.
lnForm = OBJTOCLIENT(MyForm, 1) && distance from top of form to top of physical screen
lnTop = viewport.Top && distance from top of form to top of _SCREEN client area
lnScreen = OBJTOCLIENT(_screen, 1) && distance from top of VFP window to top of physical screen
lnMenus = lnForm - lnTop - lnScreen && height of VFP's window's menus, top-docked toolbars, and top window border
DECLARE INTEGER GetWindowRect IN user32;
INTEGER hWindow,;
STRING @lpRect
cBuffer = REPLICATE(CHR(0), 16)
GetWindowRect( _screen.HWnd, @cBuffer )
? ctobin( SUBSTR(cBuffer, 1, 4),"SR" ), _screen.left
? ctobin( SUBSTR(cBuffer, 5, 4),"SR" ), _screen.top
? ctobin( SUBSTR(cBuffer, 9, 4),"SR")-ctobin( SUBSTR(cBuffer, 1, 4),"SR" ), _screen.width
? ctobin( SUBSTR(cBuffer, 13, 4),"SR" )-ctobin( SUBSTR(cBuffer, 5, 4),"SR" ), _screen.Height