Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Display resolution problem
Message
De
22/03/2000 14:07:19
 
 
À
22/03/2000 12:15:19
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Divers
Thread ID:
00348969
Message ID:
00349039
Vues:
22
>I am using VFP6.0
>I have an app developed in 1024x768. Some of the customers like to use 800x600. Is there a way that I can automatically check the resolution the user is curently running and then switch to 1024x768 when the app starts (if necessary) and then switch it back when the app closes?
>
>This seems like it should be possible using an API call but I have never had a need to do that so I have no experience.
>
>Does anybody have a few lines of code I could use?
>

It is doable, however, the 1024x768 mode may not be supported by the video card, or may require changes to the color depth to implement, and may force the user's system to reboot as part of the change in screen resolution. It also will cause the user's desktop to rearange itself spontaenously, and may rearrange itself again when the change is made back to another resolution later. Not to mention the effect that may be fel;t by othert apps that might be running.

If your application demands that the user be in 1024x768 mode, I'd suggest a preferable mechanism would be to check the screen resoltuion at startup, and if inadequate, give the user the option of changing the resolution themselves (if necessary, you can fire up the Display Control Panel applet for them from within VFP) or terminating the program - you can always recheck the screen resolution if they click through and blow off your warning, and shut down. This at least would give the user the opportunity to close other applications or make adjustments to their display settings to make their environment more appropriate for operation at 1024x768. In particular, this gives your users a way of using a scrolling viewport if their video driver supports it - they can leave the screen so that an 800x600 display viewport is maintained, and it scrolls around. This can be added to many video drivers by installation of Active Accessibility, a mechanism built into Windows to improve application accessibility for visually impaired users.
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