If you use FormatRange with wrapping set to SC_WRAP_CHAR or SC_WRAP_NONE, the 
output is not limited to the rc rectangle. The foreground text output is "sort-
of" limited (more below), but the background is not.

More information:
With no Lexer, and SC_WRAP_NONE, lines that extend beyond the rc rectangle 
print regardless. With my lexer, the text gets truncated at the first style 
change beyond the rc rectangle, but the background is not truncated.

With no Lexer, and SC_WARP_WORD, the text output is correctly wrapped, and the 
background does not extend beyond the rc rectangle (much... it may extend by 1 
pixel, I will check this).

I have some PDF files of the output if anyone wants to see the effects.

Has anyone else come across this?
Any suggestions?

Greg Smith

_______________________________________________
Scintilla-interest mailing list
[email protected]
http://mailman.lyra.org/mailman/listinfo/scintilla-interest

Reply via email to