Solved

VFP Application and Screen Resolution

Posted on 2010-08-18
3
1,252 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:Nick Sui
3 Comments
 
LVL 41

Assisted Solution

by:pcelba
pcelba earned 125 total points
Comment Utility
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
Comment Utility
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
Comment Utility
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

Threat Intelligence Starter Resources

Integrating threat intelligence can be challenging, and not all companies are ready. These resources can help you build awareness and prepare for defense.

Join & Write a Comment

Suggested Solutions

Title # Comments Views Activity
Report Control Toolbar during runtime 7 591
Report to PDF and TIF 33 1,410
dedupe in foxpro 12 437
Copying a DBF file fails 9 256
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…
In this article, you will read about the trends across the human resources departments for the upcoming year. Some of them include improving employee experience, adopting new technologies, using HR software to its full extent, and integrating artifi…
In this seventh video of the Xpdf series, we discuss and demonstrate the PDFfonts utility, which lists all the fonts used in a PDF file. It does this via a command line interface, making it suitable for use in programs, scripts, batch files — any pl…
Here's a very brief overview of the methods PRTG Network Monitor (https://www.paessler.com/prtg) offers for monitoring bandwidth, to help you decide which methods you´d like to investigate in more detail.  The methods are covered in more detail in o…

743 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

16 Experts available now in Live!

Get 1:1 Help Now