Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Making an app scalable to high DPI screens
Message
De
02/03/2002 17:59:10
Hilmar Zonneveld
Independent Consultant
Cochabamba, Bolivie
 
 
Information générale
Forum:
Visual FoxPro
Catégorie:
Problèmes
Divers
Thread ID:
00627460
Message ID:
00627465
Vues:
15
>The more I look, the more I don't understand...
>Many of today's newer notebook PC's have UXGA (1600x1200) LCD displays, and because these are only 15" panels, they are designed to work in a higher DPI setting... typically at either 125% or 150% of the "standard" 96 DPI. I notice with VFP that when I change the display's DPI settings (and reboot), that my VFP forms don't change at all... that is, all the form's controls are still rendered as if a 96 DPI font were used, which is both good and bad. Good because I don't have to worry about the contents of a control becomming too big for it (and similar things, like a command button's text becoming too large for it)... in other words, apparently no scaling is being done. Bad because a form that looks good at 1024x768 becomes nearly unreadable at 1600x1200 on a 15" LCD display... the fonts become tiny... and stay that way no matter what I set for the display's DPI setting.
>
>What's the solution?

One thing you can do is detect the current resolution with SYSMETRIC(), and adjust your form accordingly, say, to 80% screen width x 60% screen height.

You would also have to adjust the position and size of all form objects, and font sizes, accordingly.

This is a lot of trouble - but I don't know whether there is an easier solution.

Hilmar.
Difference in opinions hath cost many millions of lives: for instance, whether flesh be bread, or bread be flesh; whether whistling be a vice or a virtue; whether it be better to kiss a post, or throw it into the fire... (from Gulliver's Travels)
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform