
Handling screen resolution in vbpro???
Quote:
>i am writing a program for distribution. while i was working away i
>thought about screen resolutions???? i currently work in 1024x768 large
>fonts(maybe). but when i create an exe file and change screen
>resolutions the forms get all messed up. since i was working in a very
>small font, the forms became very large when the screen resolution was
>changed to 800x600 or larger.
>i would like the forms to appear the same in any font size? is that
>possible.
>this sounds like a pretty difficult thing to control. maybe i am not
>seeing something. i would appreciate any suggestions thank
Here are the (rough) guidelines I follow.
1. Test you application on a Standard VGA (640x480, Small Fonts). Until you
get used to what this allows you should probably design your user interface
in this resolution. You should also make sure your application looks good
with different numbers of colours (e.g. 16, 256, 32K) and different colour
settings from the control panel.
2. All forms should be designed using the standard MS Sans Serif 8.25pt
font (although I turn bold off to give them more of a Windows'95 look).
Windows will automatically adjust the fonts for large font drivers.
3. Document-type windows should be given a sizeable border and should
respond to the resize event to fill the window (such as making a grid fill
the window).
4. Dialog-box windows (which seem to make up the majority of VB forms)
should be given a fixed double border. There is no need to resize these
(except in very rare cases) since the user may have customised windows and
picked settings (such as resolution and font size) which they are
comfortable with.
5. If setting colours of controls you should try to pick "standard" colours
in preferance to hard-coded colours. These are colours from &h80000000& to
&h80000012&. They are customisable from the control panel. For example, if
you want to give your form a "grey" background, use &h8000000f& instead of
&h0c0c0c0& as this will use whatever colour your buttons are set to. This
is more important under Windows'95 as it is more common to pick non-grey
colours for 3d objects.
6. Don't interfere with the workings of Windows. Many programmers moving to
Windows want to force their program to always run full screen ("How do I
disable the Alt-Tab key?"). Many users want to use you application in
conjunction with their other Windows applications. Anything non-standard
interferes with this.
7. It is usually a good idea to use an MDI form (assuming you application
has more than one form). If you're doing this, allow users to open multiple
forms (and, if appropriate, multiple instances of the same form) along-side
each other.
8. If it is getting difficult to fit all the controls for a form on VGA,
then it is probably getting difficult for the user to see whats going on.
You should split up such forms either by using one of the many Tabbed
Dialog box controls now available, or by using several forms. It doesn't
really matter which, just try to keep it simple.
That's about all I can think of at the moment. Perhaps some of you would
like to add to this list (or reject some of mine as absurd).
Hope this is of some help to somebody.
James Shields