Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Handling different screen resolutions
Message
 
General information
Forum:
Visual FoxPro
Category:
Forms & Form designer
Environment versions
Visual FoxPro:
VFP 9 SP1
OS:
Windows 2000 SP4
Network:
Windows 2000 Server
Database:
Visual FoxPro
Miscellaneous
Thread ID:
01127183
Message ID:
01127198
Views:
12
>>What's the best way to handle running one application on many different machines with different screen resolutions?
>>
>>Specifically, I want to be able to run all my forms on my machine with a screen resolution of 800x600 and with a screen resolution of 1024x768.
>>
>>My maximum design area is set to 800X600 when I build my project. This gives me a maximum form height of 569 and a max form width of 790.
>>
>>With a screen resolution of 1024x768 this is fine.
>>
>>With a screen resolution of 800x600, I can't get to the bottom of my forms. The forms are too big for the screen.
>>
>>What's the best by to handle this? We need to be able to run the app in any resolution.
>>
>>Deb
>
>Here is how I handle this. I store all controls (labels, texboxes, etc.) of the user interface in a container. In the INIT of the form I add the container to the form. The form changes the size according to the size of the container. I have two containers, one for screens of resolution higher than 800 x 600 and another from 800 x 600. Then based on some user preference/flag/semaphore the program picks up the container that will fit the screen resolution.
>
>HTH.

You can use Anchor property of objects rather than designing and maintaining 2 versions of containers, if I understood your idea correctly. I'm not sure, though, it this would have speed impact...
If it's not broken, fix it until it is.


My Blog
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform