Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Calculation for size of VFP Desktop area?
Message
Information générale
Forum:
Visual FoxPro
Catégorie:
Gestionnaire d'écran & Écrans
Divers
Thread ID:
00723216
Message ID:
00723265
Vues:
12
Yes, someone (in another forum) suggested them, but my test code had _Screen.Height and _Screen.ViewPortHeight return the same values.

***************************************************************************************
Set Status Bar On
Set SysMenu On
Show Window Standard

? "Menu", "Toolbar", "Status Bar", "Height", "ViewPortHeight"
Do Disp_Stat
Set SysMenu Off
Do Disp_Stat
Hide Window Standard
Do Disp_Stat
Set Status Bar Off
Do Disp_Stat

********************************************

Set Status Bar On
Set SysMenu On
Show Window Standard

********************************************

Procedure Disp_Stat
? Set("SysMenu"), IIF(WVisible("Standard"),"Shown","Hidden"), Set("Status Bar"), _screen.height, _screen.viewportheight
EndProc
***************************************************************************************


>Have you explored _SCREEN.ViewportHeight and ViewportWidth? They're not documented for _Screen (they are documented for Form Objects) but they seem to give what you want.
>
>>Does anyone have (or know of) a formula/calculation to determine the height and width of the VFP Desktop area. This would be the space below the menu bar (if any) and above the status bar (if turned on).
>>
=======================
J Robert Jernigan
Calabasas, CA USA
jrjernigan@hotmail.com

"To err is human ... I should know, I get to show my humanity everyday!" jrj

"I just love the internet - it takes this great big planet and makes it smaller. Now, why can't we all just get along?" jrj
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform