I have found this site before, but the Sysmetric is better for fining out what the system resolution is. Anyway I want to know how to change the system resolution. I will be glad if someone tells me how to do so.
Simple one, My formulars are quite big and when the system run on 640x480 and the grafic card and monitor permit higher I it will be better to ask thrue the program the user whether the program can change the resolution to the requested one. Why not to display whole form insted of parts of it. I want the solution, if anybody know how to do that I will be glad if he tells me.
How can I find out what the system resolution is, and how can I change it via FoxPro
Changing what the user has set up on his machine is a very bad idea.
Instead, you should make your forms resizable depending on the screen resolution which you can find using the SYSMETRIC() function. Look it up in the on-line help.
Thanks for your advices but I will not change my mind. There is a plenty of textboxes, some listboxes. You mean the right way how to do that is to resize the form I tried, it works but if I want to run this form on 640X480 I have to degrease the font size of all of the controls some to value of 6. It is really nice to read text like this size. Please do not solve why to do that, if anybody knows how to do that, please disrcibe me it, if not do not give me an advice like "The "correct" solution is NOT to change your users screen resolution but to re-size your form. (What is a "formular" anyway )".
Once again, please, if somebody knows the way how to change the system resolution please help me, but if you have advices like the do not mess with your user's machine setting, do not write it anyway, cause I need to know how to do that.
I hope one of you experts will know how to do that.
Changing it is a very bad idea. It goes against Windows norms and is very annoying. How do you like one program you use to change your user-defined Windows screen resolution for another, then you task switch to another program, Excel for example that you had in the background and the resolution now is wronf for it.
Programs should NOT change Windows resolution. The user does that through Windows Control panel.
The "correct" solution is NOT to change your users screen resolution but to re-size your form. (What is a "formular" anyway )
VFP can detect the screen resolution - see SYSMETRIC() function - and you can have your form check the current resolution in its INIT() method and adjust itself to suit the user's set-up. There are plenty of free resizer classes available - just do a search on the internet and you will find some. Try a few and choose the one that suits your style best...
Trust me, this is a much better solution than messing with your user's machine settings
You mean the right way how to do that is to resize the form I tried, it works but if I want to run this form on 640X480 I have to degrease the font size of all of the controls some to value of 6.
You do not say which version of VFP you are using, but you could always set the ScrollBars property of the form (if the version you are woking in is recent enough to have scrollable forms) to .T. Then, if someone prefers to have their screen resolution set to 640 x 480, you can still use a reasonable font size.
Misiacik7 wrote:
Please do not solve why to do that, if anybody knows how to do that, please disrcibe me it, if not do not give me an advice like "The "correct" solution is NOT to change your users screen resolution but to re-size your form. (What is a "formular" anyway )".
Once again, please, if somebody knows the way how to change the system resolution please help me, but if you have advices like the do not mess with your user's machine setting, do not write it anyway, cause I need to know how to do that.
I do not wish to be unkind, but it seems to me that your tone is a little bit belligerent. No one here is paid to provide help. We all do it out of the kindness of our hearts for free. If you insist on demanding answers, you probably won't get them.
If we tell you that what you are trying to do is not a good idea, it is because it isn't. If I installed an application that changed my preferred system settings, the next thing I would do is uninstall it. Everyone here is trying to give you good advice to make your application better.
If the form is too short, the correct solution is to group your sets of controls in some logical way and place them in different pages on a PageFrame control.
If the process of filling the form is formalized in a set of steps (e.g. step #2 must be done after step #1 and not jump to it directly), then you could use a wizard which is nothing more than a PageFrame with no page tabs showing and you control the page change programmatically.
System resolution
bilalso
I have found this site before, but the Sysmetric is better for fining out what the system resolution is. Anyway I want to know how to change the system resolution. I will be glad if someone tells me how to do so.
Thanks for advices
Pete Nelson
Simple one, My formulars are quite big and when the system run on 640x480 and the grafic card and monitor permit higher I it will be better to ask thrue the program the user whether the program can change the resolution to the requested one. Why not to display whole form insted of parts of it. I want the solution, if anybody know how to do that I will be glad if he tells me.
Thanks
ihd4me
Tamar
dga
http://www.news2news.com/vfp/ example=374&ver=vcpp
Richie_C
Do you mean Screen Resolution
pradeep.vutukuri
Changing what the user has set up on his machine is a very bad idea.
Instead, you should make your forms resizable depending on the screen resolution which you can find using the SYSMETRIC() function. Look it up in the on-line help.
lemonash
Thanks for your advices but I will not change my mind. There is a plenty of textboxes, some listboxes. You mean the right way how to do that is to resize the form I tried, it works but if I want to run this form on 640X480 I have to degrease the font size of all of the controls some to value of 6. It is really nice to read text like this size. Please do not solve why to do that, if anybody knows how to do that, please disrcibe me it, if not do not give me an advice like "The "correct" solution is NOT to change your users screen resolution but to re-size your form. (What is a "formular" anyway )".
Once again, please, if somebody knows the way how to change the system resolution please help me, but if you have advices like the do not mess with your user's machine setting, do not write it anyway, cause I need to know how to do that.
I hope one of you experts will know how to do that.
Thanks
Tigerwood2006
Thoras
You find it via SYSMETRIC(1) and SYSMETRIC(2)
Changing it is a very bad idea. It goes against Windows norms and is very annoying. How do you like one program you use to change your user-defined Windows screen resolution for another, then you task switch to another program, Excel for example that you had in the background and the resolution now is wronf for it.
Programs should NOT change Windows resolution. The user does that through Windows Control panel.
CaptainSmudge
The "correct" solution is NOT to change your users screen resolution but to re-size your form. (What is a "formular" anyway )
VFP can detect the screen resolution - see SYSMETRIC() function - and you can have your form check the current resolution in its INIT() method and adjust itself to suit the user's set-up. There are plenty of free resizer classes available - just do a search on the internet and you will find some. Try a few and choose the one that suits your style best...
Trust me, this is a much better solution than messing with your user's machine settings
dangrmous
You do not say which version of VFP you are using, but you could always set the ScrollBars property of the form (if the version you are woking in is recent enough to have scrollable forms) to .T. Then, if someone prefers to have their screen resolution set to 640 x 480, you can still use a reasonable font size.
I do not wish to be unkind, but it seems to me that your tone is a little bit belligerent. No one here is paid to provide help. We all do it out of the kindness of our hearts for free. If you insist on demanding answers, you probably won't get them.
If we tell you that what you are trying to do is not a good idea, it is because it isn't. If I installed an application that changed my preferred system settings, the next thing I would do is uninstall it. Everyone here is trying to give you good advice to make your application better.
Wim1966
Derek Smyth
If the form is too short, the correct solution is to group your sets of controls in some logical way and place them in different pages on a PageFrame control.
If the process of filling the form is formalized in a set of steps (e.g. step #2 must be done after step #1 and not jump to it directly), then you could use a wizard which is nothing more than a PageFrame with no page tabs showing and you control the page change programmatically.
praveench2k