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
DC_MsgBox() and font
Re: DC_MsgBox() and font
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.
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.
- 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
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:
But the image of characters were "chopped":

I had to use this form of the function:
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?
Code: Select all
DC_MsgBox(,,{'z ='+ALLTRIM(STR(z)),;
'p1='+ALLTRIM(STR(p1)),;
'p2='+ALLTRIM(STR(p2))},'Триангуляция Делоне',,,,,,,,, '20.Helvetica Bold')

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')

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
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
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.
- 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
Thank you, Roger!
It would seem a trifle, but nice. And in fact, not so little thing.
It would seem a trifle, but nice. And in fact, not so little thing.