dbTalk Databases Forums  

Display Settings

comp.databases.xbase.fox comp.databases.xbase.fox


Discuss Display Settings in the comp.databases.xbase.fox forum.



Reply
 
Thread Tools Display Modes
  #1  
Old   
shahjagat@aol.com
 
Posts: n/a

Default Display Settings - 02-04-2005 , 01:41 PM






Hello -

We have a FPW 2.6 application. This application needs the screen
resolution to be 1024X768 in order for the screens and forms to appear
right.

Is there any way to manipulate the display settings on a client machine
thru the application to change the resolution to this value and set it
back to whatever value they had once the user quits the program.

Shah


Reply With Quote
  #2  
Old   
Rick Bean
 
Posts: n/a

Default Re: Display Settings - 02-07-2005 , 12:33 PM






Shah,

No, and it wouldn't be a good idea to do it anyway. Most people set their resolution the way they want and it's a bit rude to consider changing it on them - especially since this affects ALL other Windows applications. Additionally, not all hardware - video cards or monitors - support all resolutions, you could actually cause permanent damage if you did change it.

It's a much better idea to use the sysmetric() function to check the current screen resolution and deny access to your program if they aren't set high enough. That way the user can decide if they really want to run your application. Some sample code that I've used in FPW -> VFP is:

set library to foxtools && necessary if you are running FPW and want to use the native MessageBox() display
IF sysmetric(1) < 800 or sysmetric(2) < 600
=MSGBOX("This program requires at least 800x600 resolution", "Please Note", 0+16+4096)
RETURN
ENDIF

Rick

<shahjagat (AT) aol (DOT) com> wrote

Quote:
Hello -

We have a FPW 2.6 application. This application needs the screen
resolution to be 1024X768 in order for the screens and forms to appear
right.

Is there any way to manipulate the display settings on a client machine
thru the application to change the resolution to this value and set it
back to whatever value they had once the user quits the program.

Shah


Reply With Quote
Reply




Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Powered by vBulletin Version 3.5.3
Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.