Unexpected font in BUTTONS

This forum is for eXpress++ general support.
Post Reply
Message
Author
User avatar
jdsoft
Posts: 116
Joined: Thu Jan 28, 2010 1:13 pm
Location: Overberg
Contact:

Unexpected font in BUTTONS

#1 Post by jdsoft »

Hello,

Windows 11
xpp 2.00.2209
Expresss build 268

I experience weird behaviour in display buttons in a customers computer.

Code: Select all

nButtons := DCGUI_BUTTON_CANCEL + DCGUI_BUTTON_OK

DCGETOPTIONS   ;
             SAYWIDTH nWidth ;
             NORESIZE     ;
             SAYOPTIONS XBPSTATIC_TEXT_BOTTOM ;
             NOMINBUTTON ;
             NOMAXBUTTON ;
             TABSTOP ;
             BUSY LANG_SYS_MES226                         ;
             ROWSPACE ROWHEIGHT ;
             DISABLEDCOLOR GRA_CLR_WHITE ;
             CLOSEQUERY MSG bAbortQuery ;
             EXITQUERY 	MSG bExitQuery  ;
             ABORTQUERY MSG bAbortQuery ;
             NOSUPERVISE                                  ;
             TOOLTIPCOLOR GRA_CLR_BLACK, GRA_CLR_YELLOW  ;
             BORDER XBPDLG_RECESSEDBORDERTHICK_FIXED     

DCREAD GUI                 ;
      TO lOk                  ;
      PARENT       @oDlg      ;
      TITLE cTitle            ;
      BUTTONS nButtons        ;
      FIT                     ;
      OPTIONS GetOptions      ;
      HANDLERBLOCK bHandler   ;
      ENTEREXIT               ;
      MODAL                   ;
      SAVE                    ;
      SETAPPWINDOW           
First the way it looks on all other computers, and this is the expected correct display.
Image

Now how it looks on the customers computer.
Image

Notice the difference in font type and font size.

The app is exactly identical on both computers.
Also same screen dimensions (1920 x 1080) and Windows 11

How can i fix this ?
Attachments
Btns_not_ok.jpg
Btns_not_ok.jpg (4.49 KiB) Viewed 227 times
Btns_ok.jpg
Btns_ok.jpg (2.76 KiB) Viewed 227 times
Regards,
Jack Duijf

User avatar
rdonnay
Site Admin
Posts: 4773
Joined: Wed Jan 27, 2010 6:58 pm
Location: Boise, Idaho USA
Contact:

Re: Unexpected font in BUTTONS

#2 Post by rdonnay »

Did the customer select a special windows theme?
The eXpress train is coming - and it has more cars.

User avatar
jdsoft
Posts: 116
Joined: Thu Jan 28, 2010 1:13 pm
Location: Overberg
Contact:

Re: Unexpected font in BUTTONS

#3 Post by jdsoft »

Hello Roger,

I just checked:
- Default windows theme
- No contrast scheme

Also notice the length of the DCGET, it is much longer then required.
The font for the dialog title and menu appear to be ok.

I also compared the installed fonts, these are identical on both computers.
- Courier New
- Arial, Arial.Nova, Arial Rounded MT
- Microsoft Sans Serif, Ms Reference Sans Serif, Sans Serif Collection

Image
Attachments
Screen _Sds.jpg
Screen _Sds.jpg (252.95 KiB) Viewed 223 times
Regards,
Jack Duijf

User avatar
rdonnay
Site Admin
Posts: 4773
Joined: Wed Jan 27, 2010 6:58 pm
Location: Boise, Idaho USA
Contact:

Re: Unexpected font in BUTTONS

#4 Post by rdonnay »

I don't have Windows 11.
Has this been tried on any other Windows 11 computers?

Do you use RESIZE SCALEFONT anywhere?
The eXpress train is coming - and it has more cars.

User avatar
jdsoft
Posts: 116
Joined: Thu Jan 28, 2010 1:13 pm
Location: Overberg
Contact:

Re: Unexpected font in BUTTONS

#5 Post by jdsoft »

Hello Roger,

I checked. a few computers with the same version of my app.
They all look ok, on Windows-11 and also on a few windows-10 machines.

I just installed font "Courier" on the customer machine.
The size of the DCGET is calculated correctly now, but the typeface looks somewhat different.
Regards,
Jack Duijf

User avatar
rdonnay
Site Admin
Posts: 4773
Joined: Wed Jan 27, 2010 6:58 pm
Location: Boise, Idaho USA
Contact:

Re: Unexpected font in BUTTONS

#6 Post by rdonnay »

I just installed font "Courier" on the customer machine.
GETS are based on the DC_XbpGet() class and the default is '10.Courier' because we need a fixed length font to properly size the GET.

You could try using a different non-proportional font like Lucida Console.

DCGETOPTIONS GETFONT "10.Lucida Console"
The eXpress train is coming - and it has more cars.

Post Reply