Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Current screen resolution and color depth
Message
De
19/03/1998 15:01:04
 
 
À
19/03/1998 14:05:19
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Divers
Thread ID:
00085728
Message ID:
00085775
Vues:
24
>>My application utilizes forms designed for a resolution of 800x600 pixels and min 256 colors. Is there a possibility to check the screen resolution and color depth prior to launch the form , within my VFP5.0 app. ?
> If you maximize _screen, i.e. _SCREEN.WindowState=2 then after this you can check _SCREEN.Width and make a conclusion.

Check out the function SYSMETRIC(), in your startup you can check with something like

lcScreenRes = ALLTRIM(STR(SYSMETRIC(1))) + ' x ' + ALLTRIM(STR(SYSMETRIC(2)))

Should return something like "600 x 800" etc...

HTH

Robert Horkay
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform