Page 1 of 1
DC_MsgBox() and font
Posted: Fri Feb 26, 2016 1:05 pm
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
Re: DC_MsgBox() and font
Posted: Sat Feb 27, 2016 10:27 am
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.
Re: DC_MsgBox() and font
Posted: Sat Mar 05, 2016 12:15 am
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":

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:

Is it possible to specify the parameters in the row height to a large font characters appear normal? Or maybe do it automatically?
Re: DC_MsgBox() and font
Posted: Sat Mar 05, 2016 8:35 am
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
Re: DC_MsgBox() and font
Posted: Sat Mar 05, 2016 10:45 am
by Eugene Lutsenko
Thank you, Roger!
It would seem a trifle, but nice. And in fact, not so little thing.