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:
01127223
Views:
10
>>>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...

I have not learned the Anchor feature of VFP yet. I am not sure
it would be applicable in my case though. And maybe yes. I am way
behind in what I need to learn in VFP 9.

Thank you.
"The creative process is nothing but a series of crises." Isaac Bashevis Singer
"My experience is that as soon as people are old enough to know better, they don't know anything at all." Oscar Wilde
"If a nation values anything more than freedom, it will lose its freedom; and the irony of it is that if it is comfort or money that it values more, it will lose that too." W.Somerset Maugham
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform