Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Screen Sizing for Any Monitor Screen Size
Message
De
06/12/2005 08:34:54
 
 
À
06/12/2005 08:26:25
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Versions des environnements
Visual FoxPro:
VFP 8
OS:
Windows XP SP2
Network:
Windows XP
Database:
Visual FoxPro
Divers
Thread ID:
01075260
Message ID:
01075266
Vues:
13
>I am seeking a way to make my applications screens/forms to be flexible to fit any size computer monitor screen (12', 15', 17', 19', ect...) that the end-users in using.
>
>If this is possible please give the resource that you used to acheive this.



Winfred,

Applications are not written to fit a physical monitor size burt a certain resolution (e.g. 800x600 pixels, 1024x748, etc.)

You can measure the current resolution at runtime with SYSMETRIC(). SYSMETRIC(1) and SYSMETRIC(2) will give you the basic information.

You can resize a form and the same on any control by puting code in the resize() method. In later versions of VFP you can take advantage of BINDEVENTS() and Anchors.

See FormEvents.scx (VFP8) and Anchors_away.scx (VFP9) in Solution Samples.

See also:
http://fox.wikis.com/wc.dll?Wiki~ScreenResize


Alex Feldstein, MCP, Microsoft MVP
VFP Tips: English - Spanish
Website - Blog - Photo Gallery


"Once again, we come to the Holiday Season, a deeply religious time that each of us observes, in his own way, by going to the mall of his choice." -- Dave Barry
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform