Solved

VFP Application and Screen Resolution

Posted on 2010-08-18
3
1,276 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

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

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…
Microsoft Office Picture Manager was included in Office 2003, 2007, and 2010, but not in Office 2013. Users had hopes that it would be in Office 2016/Office 365, but it is not. Fortunately, the same zero-cost technique that works to install it with …
This video shows how to remove a single email address from the Outlook 2010 Auto Suggestion memory. NOTE: For Outlook 2016 and 2013 perform the exact same steps. Open a new email: Click the New email button in Outlook. Start typing the address: …
You have products, that come in variants and want to set different prices for them? Watch this micro tutorial that describes how to configure prices for Magento super attributes. Assigning simple products to configurable: We assigned simple products…

919 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

Need Help in Real-Time?

Connect with top rated Experts

20 Experts available now in Live!

Get 1:1 Help Now