Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Screen resolution
Message
De
06/09/2015 03:13:58
Al Doman (En ligne)
M3 Enterprises Inc.
North Vancouver, Colombie Britannique, Canada
 
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Versions des environnements
Visual FoxPro:
VFP 9 SP2
OS:
Windows Server 2012
Network:
Windows 2008 Server
Database:
MS SQL Server
Application:
Web
Divers
Thread ID:
01624301
Message ID:
01624321
Vues:
57
>>>Just bought new mini laptop 13.3 with optimal screen resolution 1920x1080. However I need to change that setting to 1280x800 to view all data in VFP window.
>>>
>>>Is there an initial setting I can change in VFP settings or set up programmatically so that when I start VFP it will change the screen resolution to 1280x800 either for VFP alone or for the whole laptop configuration.
>>>
>>>tnx k
>>
>>Could it be that rather than setting the video resolution, you want to be changing the DPI setting? I'm guessing that in 1920x1080 resolution you're getting a larger DPI setting (making the text effectively larger).
>
>I see what you are saying now Naota. There is in fact a separate adjustment for scale in windows 10 that allows me to select 1920x1080 and set a custom scaling from 150% (which is recommended) to 125% -- by doing this, the window vfp opens into can be viewed now in its entirety which allows me to view multiple windows contained within the main vfp window. And the resolution setting allows the full laptop screen to be used.
>So you have in fact solved the main part of the problem Naota - with thanks for that.
>
>I am getting the impression that doing this as an overall function applied only to vfp and setting it programmatically is not an option.

Scaling is a global setting in Windows and can play havoc with form designs. Default as you've no doubt found is 100%. Forms sometimes still look OK at 125% but 150% usually has problems.

When you set your screen to 1280x800, that's a 16:10 width/height aspect ratio. So, you get a little more height for the width. Full HD 1920x1080 is 16:9 aspect ratio, with a little less height, which is why you're seeing the bottoms cut off.

I would experiment with making _Screen.Height in your main VFP window somewhat bigger. If you do that while leaving the width the same, you should be able to avoid the cutting off.
Regards. Al

"Violence is the last refuge of the incompetent." -- Isaac Asimov
"Never let your sense of morals prevent you from doing what is right." -- Isaac Asimov

Neither a despot, nor a doormat, be

Every app wants to be a database app when it grows up
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform