trichview.com

trichview.support




Re: draw line on richView.canvas and  print.canvas


Return to index


Author

Message

Sergey Tkachenko

Posted: 07/03/2002 21:14:45


There is no direct relation between coordinates on screen and on printer,

because lines may be wrapped in different places.

If you want to "attach" line to the text, try to use OnDrawStyleText event

of RVStyle.



> i have draw some line on document .

> bye  mouse nove event and richview onPaint event

> the line is correspond to some words of the document .

> then ,i want to print the document and the line .

> i draw the line on the Canvas in onPagePrepaint event .

> i found that the line can not correspond to and the words

>

> how can i get the relation  of postion in richview.canvas and the

position

> in the canvas of onPagePrepaint ..

>

> i have set the maxtextWidth as the width of  PrintAreaRect

> it looks like WYSWYG.






Powered by ABC Amber Outlook Express Converter