Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Screen Sizing for Any Monitor Screen Size
Message
From
06/12/2005 08:34:54
 
 
To
06/12/2005 08:26:25
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Environment versions
Visual FoxPro:
VFP 8
OS:
Windows XP SP2
Network:
Windows XP
Database:
Visual FoxPro
Miscellaneous
Thread ID:
01075260
Message ID:
01075266
Views:
14
>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
Previous
Reply
Map
View

Click here to load this message in the networking platform