Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

Setting screen resolution at application startup.

0 views
Skip to first unread message

Michael A. Walker

unread,
Sep 3, 2002, 9:22:21 PM9/3/02
to
Is it possible to have a VFP application set the screen resolution to a
specific setting at startup and upon exit reset to original setting?

Thank you,

Michael A. Walker
mwa...@mawconsulting.com


Fred Taylor

unread,
Sep 4, 2002, 4:09:55 AM9/4/02
to
Since windows applications can be run at any time, it's a real strong
suggestion that your application NOT change the resolution to anything
specific. Better that your application check the current resolution and
suggest the change, rather than make the change itself. Changing the
resolution could result in damage to your hardware, especially if you were
to change to a resolution not supported by the hardware.


--

Fred
Microsoft Visual FoxPro MVP
Please respond only to the newsgroups so that all may benefit.


---
Outgoing mail is certified Virus Free.
Checked by AVG anti-virus system (http://www.grisoft.com).
Version: 6.0.384 / Virus Database: 216 - Release Date: 8/21/2002


Michael A. Walker

unread,
Sep 4, 2002, 6:16:49 AM9/4/02
to
Thank you, what options do I have to check the resolution and suggest
otherwise at application startup?

"Fred Taylor" <fta...@mvps.org> wrote in message
news:eQBFDp#UCHA.1664@tkmsftngp13...

Mike Gagnon

unread,
Sep 4, 2002, 7:30:05 AM9/4/02
to
Take a look at the SYSMETRIC function:
IF SYSMETRIC(1) < 1024 && Sreen width
messagebox("This application is best run at 1024 x 768")
ENDIF

SYSMETRIC(1) = screen width
SYSMETRIC(2) = screen height

"Michael A. Walker" <mwa...@mawconsulting.com> wrote in message
news:l4ld9.5960$LI2.4...@newsread2.prod.itd.earthlink.net...

0 new messages