Guten Tag,
I have been using the OnTextObjectPaint method to draw these nice looking rounded corner boxes that appear in the background with the text of the editor appearing on top of them.
I would like to do the same thing with the OnInterPaintPar but anything I draw on the canvas appears in front of the editors text. Is there someway I can get item I draw on this canvas to appear behind the text? Either some variable to set or even re-working some code?
I know I could draw just the outline and set the ParColorOverride to the color I want, but I need to have the rounded corners that the roundrect function provides.
So its imperative that I am able to draw anything behind the text.
I did not know that it was calling this per line and the multiple draws I made each time covered more than the area that just the line being drawn (since each draw started at the top of the paragraph) and this caused it to overwrite the text.