Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations bkrike on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Screen Resolution Problem 1

Status
Not open for further replies.

tondi

Technical User
Nov 29, 2001
115
US
Our app is designed to run minimum 1024 resolution. We have a few users whose settings are set and verified at 1024 but our app still produces our error screen ststing we require 1024 minimum. Obviously VFP8 is not recognizing the setting. We even tried setting screen to 1280, still no luck. Any thoughts?
 
Tondi,
I use the following, at virtually the beginning of my main code, to check for 800x600, you could obviously make a couple changes for 1024x768(??):
Code:
IF sysmetric(1) < 800 or sysmetric(2) < 600
	MESSAGEBOX("This program requires at least 800x600 resolution", 0+16+4096, "Please Note")
	RETURN
ENDIF
Note the "negative" logic, so you don't have to worry about ANDs, NOTs and/or ELSEs!

Rick
 
Rick,

Your code neatly solves the problem, but may I make a suggestion? I don't know how technical your users are, but if they are anything like some of mine, they probably don't know what a "resolution" is and have no idea how to change it. All they know is that your program has just issued a cryptic error message.

The message would be more useful if it also told the user how to change the resolution, and perhaps even offered to call up the display properties applet for them.

Just a thought.

Mike


Mike Lewis
Edinburgh, Scotland

My Visual Foxpro web site: My Crystal Reports web site:
 
Thanks All for the replies and suggestions. I will forward this thread to my programmer. When I check the user's screen setting id DOES show 1024x768 which is what we need BUT for some reason our program is not recognizing the setting and returns our screen message stating minimum requirements 1024x768. This is only happening on a few of the many users we have sent the update to.
Tony
 
Here is the code we are using

CASE _SCREEN.WIDTH > 1000 AND _SCREEN.WIDTH < 1100 && 1024x768
DEFINE WINDOW MainWind FROM -1.5,0 TO 43.5,114 ;
FONT 'COURIER NEW',15;
ICON FILE 'SALONTEC.ICO' ;
NOCLOSE;
FLOAT;
NOGROW;
NOZOOM;
COLOR SCHEME 1


CASE _SCREEN.WIDTH > 1200 AND _SCREEN.WIDTH < 1300 && 1280x1024
DEFINE WINDOW MainWind FROM 0,0 TO 55,142 ;
FONT 'COURIER NEW',18;
ICON FILE 'SALONTEC.ICO' ;
NOCLOSE;
FLOAT;
NOGROW;
NOZOOM;
COLOR SCHEME 1

OTHERWISE
=MESSAGEBOX("Monitor Resolution must be: 1024x768 or 1280x1024",48,"Warning")
CANCEL

ENDCASE
 
Mike,
I agree with your user understanding comments - the code I borrowed was for a little utility program that we supply to "smart" customers. We have similar code for the "general" cumstomer that is much friendlier (dumbed down! :)).

Tony,
I'd check the video card / driver that isn't apparently working. They may be using some non-standard setup that is reporting back what Windows thinks is true.

Rick
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top