Screenresolution problem

Post Reply
Marc Vanzegbroeck
Posts: 1102
Joined: Mon Oct 17, 2005 5:41 am
Location: Belgium
Contact:

Screenresolution problem

Post 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
User avatar
Detlef Hoefner
Posts: 312
Joined: Sat Oct 08, 2005 9:12 am
Location: Germany
Contact:

Post 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
Marc Vanzegbroeck
Posts: 1102
Joined: Mon Oct 17, 2005 5:41 am
Location: Belgium
Contact:

Post 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
Marc Vanzegbroeck
Posts: 1102
Joined: Mon Oct 17, 2005 5:41 am
Location: Belgium
Contact:

Post 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
Post Reply