Solved

VFP Application and Screen Resolution

Posted on 2010-08-18
3
1,342 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
3 Comments
 
LVL 42

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

Announcing the Most Valuable Experts of 2016

MVEs are more concerned with the satisfaction of those they help than with the considerable points they can earn. They are the types of people you feel privileged to call colleagues. Join us in honoring this amazing group of Experts.

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…
Adults who share images on social media aren’t the only ones who need to worry about their privacy. Our culture’s tendency to share every move and celebration affects the privacy of our children, too.
In an interesting question (https://www.experts-exchange.com/questions/29008360/) here at Experts Exchange, a member asked how to split a single image into multiple images. The primary usage for this is to place many photographs on a flatbed scanner…

735 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