Express 264 _dcmsg.prg change

This forum is for eXpress++ general support.
Message
Author
Cliff Wiernik
Posts: 605
Joined: Thu Jan 28, 2010 9:11 pm
Location: Steven Point, Wisconsin USA
Contact:

Express 264 _dcmsg.prg change

#1 Post by Cliff Wiernik »

The appearance of the dialog generated without code changes from Build 263 to 264 are shown below. Unfortunately the 264 appearance does not look good compared to the 263 appearance.

The readme.txt contains the following entry:

1412. Fixed a problem with DCMSGBOX and DC_MsgBox() that caused message items
and buttons to display incorrectly when using large fonts.

Unfortunately, I think it has negative impact on normal items. Do you know how to get the prior appearance. I can backrev the _dcmsg.prg code if needed, but I always like to use the stock express code.

Issues:
a. The icon is oversized and stretched
b. The caption is not spaced correctly and is two low and crowds the push buttons
c. The spacing around the buttons and the dialog is less. This is minor, but the extra space looks a little more appealing.

Appearance when using exp build 263.
dcmsg263.jpg
dcmsg263.jpg (107.7 KiB) Viewed 16103 times
Appearance when using exp build 264.
dcmsg264.jpg
dcmsg264.jpg (109.55 KiB) Viewed 16103 times

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

Re: Express 264 _dcmsg.prg change

#2 Post by rdonnay »

I don't know why yours doesn't look right.

I need more info.

I get the exact same look in both 263 and 264.
The eXpress train is coming - and it has more cars.

Cliff Wiernik
Posts: 605
Joined: Thu Jan 28, 2010 9:11 pm
Location: Steven Point, Wisconsin USA
Contact:

Re: Express 264 _dcmsg.prg change

#3 Post by Cliff Wiernik »

I will look at how I am calling it and see what I am doing differently. I think I am specifying a font. That could be the issue.

Cliff Wiernik
Posts: 605
Joined: Thu Jan 28, 2010 9:11 pm
Location: Steven Point, Wisconsin USA
Contact:

Re: Express 264 _dcmsg.prg change

#4 Post by Cliff Wiernik »

Okay,

I took my code out of my program into a stand-alone program I use dc_msgbox() for to display yes/no confirmation boxes, warning boxes or 3 state confirmation boxes. I pass a box size to do it the size of the prompt boxes as I like. You can see that this test program duplicates the actual screens I show in the other dialog.
263.jpg
263.jpg (11.05 KiB) Viewed 16077 times
2632.jpg
2632.jpg (9.71 KiB) Viewed 16077 times
Attachments
testmsgbox.zip
(1.24 KiB) Downloaded 683 times

Cliff Wiernik
Posts: 605
Joined: Thu Jan 28, 2010 9:11 pm
Location: Steven Point, Wisconsin USA
Contact:

Re: Express 264 _dcmsg.prg change

#5 Post by Cliff Wiernik »

And the 264 versions
264.jpg
264.jpg (10.77 KiB) Viewed 16077 times
2642.jpg
2642.jpg (9.56 KiB) Viewed 16077 times

Cliff Wiernik
Posts: 605
Joined: Thu Jan 28, 2010 9:11 pm
Location: Steven Point, Wisconsin USA
Contact:

Re: Express 264 _dcmsg.prg change

#6 Post by Cliff Wiernik »

With multiline items, the difference between 263 and 264 is that the lines are closer together. It is possible that 264 is the correct presentation
but it appears that it is two close in 264. Just like it appears in the message on the webboard, there is more spacing between lines in 263. Plus, for some reason it crowds the pushbuttons at the bottom instead of being spaced evenly between the icon and the pushbuttons.

Cliff Wiernik
Posts: 605
Joined: Thu Jan 28, 2010 9:11 pm
Location: Steven Point, Wisconsin USA
Contact:

Re: Express 264 _dcmsg.prg change

#7 Post by Cliff Wiernik »

If you put 2 additional blank lines in the array of message displayed, then the presentation is spaced evenly between the icon and pushbuttons. The spacing is still closer than I think is easy to read.

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

Re: Express 264 _dcmsg.prg change

#8 Post by rdonnay »

Here is an updated _DCMSG.PRG.

I have added 8 pixels between the rows to make it look exactly like build 263, except now it will work with different fonts.
Attachments
_dcmsg.zip
(5.48 KiB) Downloaded 694 times
The eXpress train is coming - and it has more cars.

Cliff Wiernik
Posts: 605
Joined: Thu Jan 28, 2010 9:11 pm
Location: Steven Point, Wisconsin USA
Contact:

Re: Express 264 _dcmsg.prg change

#9 Post by Cliff Wiernik »

Roger,

I am still getting the icon appearing larger and stretched a bit vertically in the live application. It did not appear to be that way in the extracted test code by itself.

How do you control the size of the icon. Its appearance is similar to the first post of this thread. I cannot really see any differences when looking at the code between 263 and 264 _dcmsg.prg.

Any thoughts on where to look, or what affects the size of the icon.

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

Re: Express 264 _dcmsg.prg change

#10 Post by rdonnay »

I think it may be due to the fact that I commented out the EXPRESS clause of DCREAD GUI.

This is an undocumented clause that was there for dialogs internal to eXpress++.
The EXPRESS clause overrides and DC_GetOptDefault() settings so they don't affect DC_MsgBox().

I don't know why I did this.
Maybe I did it during testing.

Remove the comment. Line 359.
The eXpress train is coming - and it has more cars.

Post Reply