When printing out the contents of an edit control all works fine unless I have hit the enter key to start a new line of text in the control. When this is printed, the line terminated by using the enter key shows two small boxes following the text. Have I done something wrong or must I subclass the control to trap the enter key? Subclassing for this printing problem seems like overkill.
Advice on this problem would be welcomed.
Regards, Fumio
Posted on 2002-07-28 22:21:45 by Fumio
Please show us your code so we can fix your problem :)
But it sounds like your forgot to set ES_MULTILINE.
Posted on 2002-07-29 01:15:15 by bazik
Thanks for your interest Bazik. I am attaching code. All edit boxes allow two lines. I used RadAsm's Dialog to window option to generate code for the four edit controls.
On the screen everything looks ok, save and open work alright. However it is when I print that the problem arises.
Again thank you for your interest
Regards Fumio
Posted on 2002-07-29 17:53:13 by Fumio
Hmmm... I entered "Test?" in each line where "?" is a number between 1-8.
The printout looks like this:



Something really wrong there ;)
Posted on 2002-07-30 01:05:14 by bazik
Bazik: thank you for the reply. Obviously a bug. I am assuming you just typed in the test? data and printed. When I do that it's worse, only title prints. However if data is saved and then printed my print out looks like this:



Notwithstanding the bug you have pointed out, what I'm trying to remedy is this:

If I type the following:
test1a ;these two lines in edit box 1

test2a ;these two lines in edit box 2

test3a ;these two lines in edit box 3

test4a ;these two lines in edit box 4

My Print out looks like this:



I think the boxes in between eg. test1 and test1a represent carriage return and line feed. My question is how do I eliminate the printing of the boxes. I am not trying to get the printout to be WYSIWYG so all on one line will be ok.
P.S. the program does not really do anything. I just use it to test routines.
I hope this has made my question easier to follow.
Again, I thank you for the time you have taken.
Best regards, Fumio
Posted on 2002-07-30 19:09:46 by Fumio
Bazik, Had a look at why inital printing was not functioning. I had commented a couple of line in the source in an attempt to eliminate the two boxes uncommenting and recompiling fixed that problem'
Here is the new exe.
Posted on 2002-07-30 19:33:54 by Fumio
For those who took the time to examine the problem, here is the solution I used.
However it seems to me that there should be a more direct way.
Posted on 2002-08-03 12:35:34 by Fumio