Solved

VFP Application and Screen Resolution

Posted on 2010-08-18
3
1,301 Views
Last Modified: 2012-08-13
Hi,

How do I make sure that the Application fits on all the desktops/laptops regardless of the parent form size?

for example; a desktop might have different resolution set.

Thanks!
SP
0
Comment
Question by:Nirmal Sharma
3 Comments
 
LVL 41

Assisted Solution

by:pcelba
pcelba earned 125 total points
ID: 33468425
Each application has minimum screen resolution defined obviously. If you design all your forms to fit this minimum resolution then you will have no problems.

In addition to this you may design your forms with vertical and horizontal scroll bars which will allow to move the whole form contents up and down (or left and right) depending on the currently active form control.

Another property is Anchor which allows to change the size of almost any form control based on the form size and thus you may dynamically (and proportionally) adjust the form size together with its contents.

To decide if the form fits to the desktop or not you may use SYSMETRIC() function.
0
 
LVL 29

Accepted Solution

by:
Olaf Doschke earned 250 total points
ID: 33468554
Well, you could layout all forms for a minimum resolution you expect, maybe of a netbook, but even that devices have 800x600 at minimum.

A helpful function to find out about system metrics is SYSMETRIC(). A helpful functionality is the anchor property of controls and containers. It helps you to define how a control should react to resizing of your form. Multicolumn listboxes and grids are not simple because columns don't autoresize.

You have the resize event() of forms to react to resizes, when anchors are not enough. You can define a minheight,minwidth so forms cannot be sized down too much.

Last not least even before anchor was introduced there were and still are several resizer classes resizing all controls on your form in the event of a resize or maximize. Never used one but some were reported to even change font size to adopt to form size.

You can do a lot of things but should rather design for an acceptable minimum size, depending on what kind of devices you want to support and expect customers, think about 16:9 displays, netbooks, then anchor your controls to resize in a usable way when the form gets bigger, not the other way around.

Bye, Olaf.
0
 
LVL 27

Assisted Solution

by:CaptainCyril
CaptainCyril earned 125 total points
ID: 33498501
I strong suggest you use the Anchor property and expect 800x600 resolution and maximize your screens as soon as they launch. This way they will work on all kinds of resolutions.
0

Featured Post

3 Use Cases for Connected Systems

Our Dev teams are like yours. They’re continually cranking out code for new features/bugs fixes, testing, deploying, testing some more, responding to production monitoring events and more. It’s complex. So, we thought you’d like to see what’s working for us.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Microsoft Visual FoxPro (short VFP) is a programming language with it’s own IDE and database, ranking somewhat between Access and VB.NET + SQL Server (Express). Product Description: http://msdn.microsoft.com/en-us/vfoxpro/default.aspx (http://msd…
Adding Computers to AD groups through an SCCM Task Sequence
This Micro Tutorial will give you a basic overview how to record your screen with Microsoft Expression Encoder. This program is still free and open for the public to download. This will be demonstrated using Microsoft Expression Encoder 4.
Microsoft Active Directory, the widely used IT infrastructure, is known for its high risk of credential theft. The best way to test your Active Directory’s vulnerabilities to pass-the-ticket, pass-the-hash, privilege escalation, and malware attacks …

777 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question