Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Is there a way to get screen height * width ?
Message
De
28/12/1999 14:20:34
 
 
À
28/12/1999 13:17:09
Cetin Basoz
Engineerica Inc.
Izmir, Turquie
Information générale
Forum:
Visual FoxPro
Catégorie:
Autre
Divers
Thread ID:
00309284
Message ID:
00309353
Vues:
31
>>>With native VFP. I prefer not to use WinAPI. TIA.
>>
>>Cetin,
>>
>>I know you well enough to know you're probably not asking for the size in pixels, but the physical dimensions (in meters I assume) of the monitor. That right?
>
>
No George :) If I can get the pixels I could get the twips :)
>Mark I'm a human too :) and being honest just couldn't think sysmetric().
>Fred and Ed unfortunately I talked too early about sysmetric() being the answer. My sesssion was somehow a normal "maximizable" session. I should reproduce the effect first and I can only do it tomorrow. I'll be back if that doesn't work :)
>
>Here a short detail (Just can't remeber exact steps):
>-A VFP task open (max or norm ? don't remember)
>-Screen res. from 1280*1024 to 800*600
>-Anýother VFP task (fox screen max. or norm again can't remember :( )
>-Restore resol.
>-Return to first VFP task
>-Maximize
>-Maximized state is obviously about 800*600
>

I'd be willing to bet that the Form's MaxHeight and MaxWidth properties were set to 600 and 800 respectively; you can get around this by writing the returns of SYSMETRIC(1) and SYSMETRIC(2) into the properties if you need to.
EMail: EdR@edrauh.com
"See, the sun is going down..."
"No, the horizon is moving up!"
- Firesign Theater


NT and Win2K FAQ .. cWashington WSH/ADSI/WMI site
MS WSH site ........... WSH FAQ Site
Wrox Press .............. Win32 Scripting Journal
eSolutions Services, LLC

The Surgeon General has determined that prolonged exposure to the Windows Script Host may be addictive to laboratory mice and codemonkeys
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform