DC_MsgBox() and font

This forum is for eXpress++ general support.
Post Reply
Message
Author
Piotr D
Posts: 131
Joined: Mon Jul 28, 2014 1:26 am
Location: Poznań, Poland

DC_MsgBox() and font

#1 Post by Piotr D »

Roger,
I see, that in current version of Express DC_MsgBox() work different as in old (244) version. When I use this function without cFont parameter, it display text not with default font used for DCSAY (defined at program startup) and default space between rows, but with another font. I look'd at _DCMSG.PRG source and find, that these problem is generated from EXPRESS option in DCREAD GUI (line 344). After removing this option this function work properly (like in v.244). Must be this option here?

Piotr

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

Re: DC_MsgBox() and font

#2 Post by rdonnay »

I think you are right about this.

I should not have added that option to DC_MsgBox().

The EXPRESS clause is meant for dialogs which are internal to eXpress++ and must not change visually with global options.
I don't know why I did that, instead I should have handled it in a different way.

I will remove it in build 264.
The eXpress train is coming - and it has more cars.

User avatar
Eugene Lutsenko
Posts: 1649
Joined: Sat Feb 04, 2012 2:23 am
Location: Russia, Southern federal district, city of Krasnodar
Contact:

Re: DC_MsgBox() and font

#3 Post by Eugene Lutsenko »

I function well using DCMsgBox(). A very handy feature. But sometimes it does not work as expected. I recently led a debugging program with a programmer from another country. We used Skype. We are faced with the fact that he could not see the message about the values ​​of variables at runtime. To solve this problem, I used this feature to indicating large font size:

Code: Select all

  DC_MsgBox(,,{'z ='+ALLTRIM(STR(z)),;
               'p1='+ALLTRIM(STR(p1)),;
               'p2='+ALLTRIM(STR(p2))},'Триангуляция Делоне',,,,,,,,, '20.Helvetica Bold')
But the image of characters were "chopped":
Image
I had to use this form of the function:

Code: Select all

DC_MsgBox(,,{'z='+ALLTRIM(STR(z))+',   p1='+ALLTRIM(STR(p1))+',   p2='+ALLTRIM(STR(p2))},'Триангуляция Делоне',,,,,,,,, '20.Helvetica Bold')
Then everything is displayed correctly:
Image
Is it possible to specify the parameters in the row height to a large font characters appear normal? Or maybe do it automatically?

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

Re: DC_MsgBox() and font

#4 Post by rdonnay »

Eugene -

I have been aware of this problem for a long time but never got around to fixing it (until now).

Copy the attached _DCMSG.PRG file to your \exp20\source\dclipx folder.

Run BUILD19_SL1.BAT (Xbase++ 1.9) or BUILD20.BAT (Xbase++ 2.0) to rebuild DCLIPX.DLL.

Roger
Attachments
_dcmsg.zip
(5.48 KiB) Downloaded 765 times
The eXpress train is coming - and it has more cars.

User avatar
Eugene Lutsenko
Posts: 1649
Joined: Sat Feb 04, 2012 2:23 am
Location: Russia, Southern federal district, city of Krasnodar
Contact:

Re: DC_MsgBox() and font

#5 Post by Eugene Lutsenko »

Thank you, Roger!

It would seem a trifle, but nice. And in fact, not so little thing.

Post Reply