Page 1 of 1

Screenresolution problem

Posted: Tue Sep 19, 2006 9:22 pm
by Marc Vanzegbroeck
Hi,

I have a dialog, and on one of my customers PC, the dialog is stretched...

Can anyone tell be how I can avoid that.

Here are screendumps of my program on 3 different resolution, and only on the last one (customers PC) the dialog is stretched. You can alsu see the the button-bar on the 'bad' one has now more empty space at the right. Also the bitmap's are distort :(

http://www.vms.be/FWTest/Screenresoluti ... index.html

Thanks,
Marc

Posted: Wed Sep 20, 2006 6:33 am
by Detlef Hoefner
Hi Marc,

i had a similar problem.
To solve this i made different dialogs for the same screen.

Code: Select all

LOCAL nScreenRes  := goWnd:nHorzRes()


   if nScreenRes == 640
      cDialog  := "SIGNALE_640"
         elseif nScreenRes == 800
      cDialog := "SIGNALE_800"
         else
      cDialog  := "SIGNALE_1024"
         endif

   DEFINE DIALOG oDlg NAME cDialog
But somestimes the screen ratio also depends on the system font size.
So a system font of 120% width will distort your dialogs.

Regards,
Detlef

Posted: Wed Sep 20, 2006 7:00 am
by Marc Vanzegbroeck
Detlef,

Thanks for your reply. I was thinking of doing something like that, but on a 1024x768 and 1280x1024 it works fine. It doesnt even 'stretch the dialog.
Only on my customer PC with a resolution on 1400x1050 I have some problems.

What kind of dialog should I make than, because I think that the PC also will stretch that dialog. I think that the problem is not the screenresolution, because the ratio of the tested scrlem will probeeen are almost the same. The 1280x1028 doest not enlarge the dialog, only the 1400x1050.
I think the probably, like you say, the system font or something else.

Regards,
Marc

Posted: Wed Sep 20, 2006 7:41 am
by Marc Vanzegbroeck
I just tested it with large fonts, on my 1280x1024 PC and that give no difference.
I just asked my customer that he have some other special settings, but he told me that the only thing he had changed is the colors to silver.
So I think it have something to do with his videodriver.

Does anyone have some other ideas to solve this problem?

Thanks,
Marc