IonicWind Software

IWBasic => GUI Central => Topic started by: Brian on December 02, 2019, 08:51:54 AM

Title: dDoc IWB test
Post by: Brian on December 02, 2019, 08:51:54 AM
Hi,

I was messing with Don Dickinson's dDoc - http://www.greatwebdivide.com/software.htm - and I realised that there had been a tutorial written ages ago, but not for IWB. Took a bit of converting, but here we are

Brian

Just added a ddoc.bmp, which was missing, and ddocml.ini, which I have modified slightly for the demo
Title: Re: dDoc IWB test
Post by: billhsln on December 02, 2019, 10:41:16 AM
Thank you.  Very detailed.  Obviously will take a lot of time to digest all the info.

Thanks again,
Bill

PS, keep up the good work.
Title: Re: dDoc IWB test
Post by: ckoehn on December 03, 2019, 06:27:22 AM
Brian,

I haven't looked at what you have but look at this link.  It was issues that I had with ddoc that sapero helped me with.  Specifically the #2 reply post.

DDOC error I had (http://www.ionicwind.com/forums/index.php?topic=4010.msg31510#msg31510)

Later,
Clint
Title: Re: dDoc IWB test
Post by: Brian on December 03, 2019, 08:31:43 AM
Clint,

I haven't had any problems printing so far. I have a program working on a networked printer at a local school, with no bother reported. The only problems I have had (and mentioned by Dennis Comninos), is with the dpLabelX(iHandle,x), dpLabelY(iHandle,y) and dpText(iHandle,x,y,DDOC_LEFT,"Next label") calls. Can't get them to work. Can't be dpText, as that is used extensively in the sample

I also found a small problem with the dpAngleText function. The angle has to be an INT

Brian
Title: Re: dDoc IWB test
Post by: ckoehn on December 03, 2019, 05:28:14 PM
I had issues with anything that returned a double or float if I remember right.  Sapero gave me the following code to fix that.  I searched the forum but couldn't find the post right off.

He said that immediately after anything that returned a double or float I needed to use the asm code he provided and it should work. It did take care of my problems. Here is the code.

lSpc=dpTextWidth(prtFile," ")
_asm
fstp dword[esp-4]
_endasm
Later,
Clint
Title: Re: dDoc IWB test
Post by: ckoehn on December 03, 2019, 05:39:08 PM
Finally found it..

This is the link I was talking about.

DDOC errror (http://www.ionicwind.com/forums/index.php?msg=30878)

Later,
Clint
Title: Re: dDoc IWB test
Post by: Brian on December 04, 2019, 04:05:19 AM
Come back, Sapero!