Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Always run in 800 by 600 resolution
Message
Information générale
Forum:
Visual FoxPro
Catégorie:
Autre
Divers
Thread ID:
01333677
Message ID:
01334029
Vues:
9
>>>Is it possible like i can do with 680x480 in file's Properties -> Compatibility tab.
>>>When i close the application it then switch back to default resolution.
>>>How could this achieved in Windows XP?
>>
>>Changing the resolution of someone's computer is a very bad idea. People set their resolution the way they want it, and arrange their desktop accordingly. If you change their resolution, you're going to mess up the desktop, and you're showing disrespect for the user.
>>
>>What you could do is issue a message that says "This application works best when your display is set for 800x600." However, the best solution is to write an application that doesn't care what the resolution is.
>>
>>Tamar
>
>And how do you do that? A long time ago, I required my users to run at 800x600. A form might be smaller than that, but some forms take up all the available space (after you consider the menu, toolbar, etc.). They can't size the screen smaller than the design size. Allowing them to do that would be difficult and pointless, IMHO. So how can you write an app that would not care about the resolution (if they ran at 640x480, they'd need to size the forms smaller than the design size, but the app won't let them)? Naturally, 800x600 is the lowest common denominator these days, so I'm safe designing with that in mind. I never see anyone running at 640x480, but perhaps there are people that do. Now, after resisting the move for awhile (just to accomodate those running at 800x600), I've started designing with 1024x768 as the minimum required resolution (in some apps, at least). Forms can always be sized larger, but just not smaller. Still, someone running at 800x600 will have some
>forms shoot off the screen and will not be able to resize them any smaller so that they fit in their screen. They will have to move to 1024x768. Ultimately, the app does care about the minimum resolution, but not about the max.

In one app I'm working on, we're designing with 800x600 as a minimum, but a desired size of 1024x768 or better. I've added nDesiredHeight and nDesiredWidth properties to my base form class. In the form Init, I call a custom method, SetFormSize. It checks the resolution and if it's large enough, sets the form to the desired size. I'm using anchoring in this app, as well, but I actually turn off the anchors before resizing and then restore them because the goal is to have more of the form show, not make things bigger, in this case.

Tamar
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform