Inconsistent drawing size on laptop

G

Guest

I have a forms based application that has hard values set for the size of the
window as well as each and every control on it and it draws reliably
everywhere but on a single machine.

When loaded on this particular machine, a Dell Latitude D800 laptop with
XPSP2 and framework 1.1 with SP1 and is running its display at 1680x1050, the
proper sizing of the form and sub controls goes to hell.

Buttons on the ToolBar on the app are noticeably smaller than normal and
resulting in about 20% of the entire bar being empty below the buttons.

The panels of the StatusBar at the bottom of the form also are properly
sized... but this is the end of it. Several custom user controls appear to
start further to the left than expected and be cut off by the right edge of
the form. Expanding the size of the form results in ridicules amounts of
empty space in both the IDE and on regularly working PC’s, but improves the
drawing on this laptop.

After extensive experimentation (short of installing VS to the laptop in
question), it almost seems like the unit of size of is different depending on
where it is. The window is of the correct height and width, as said the
StatusBar panels are also properly sized... however several custom controls
end up drawing outside of their expected boundaries (as if they are being
told that the actual drawable area is much much larger than it really is).

You may have noticed from the resolution mentioned above is around a 16x9
aspect ratio, thinking this might have something to do with it we tested the
app at multiple different resolutions with different ratios on multiple
devices... and yet the problem remains solely on this PC.

Anyone care to venture a guess as to what is going on and what might be done
to fix it?

Thanks,
Brendan Grant
 
G

Guest

I am a fool.

The issue here was the DPI of the devices was the culprit.

Most desktop monitors run at 96dpi, while a good number of newer LCD and
higher quality displays run at at least 120dpi, and, unless you account for
this, serious problems can ensue. Unfortunately, I was not able to correct
this problem with regards to my app, so customers will need to be told not to
run it at a resolution other than 96dpi.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top