TAdvMemo Questions

Hello,

I have started using TAdvMemo as I needed the URL recognition but, other than that I just need a TMemo. I have managed to get most of the visual effects OK, but I have 2 issues left:

1) The cursor inserts and stays where there is no text. If a line is 8 characters long, then the cursor should not be positionable at any position after 8. Is there an option for this ?

2) If I save the text using Lines.Text, I get a string which saves the "visual" aspect of the text (ie. if the text is word wrapped, then Lines.Text inserts a return after each "visual" line break, even though there are no returns in my string. How do I get the real text of the Memo, not the visual one ?

See image at http://www.qppstudio.net/images/2018-09-11_18-34-46.png for a illustration of the problem.

Very best regards,

Olivier
  1. Set AdvMemo.AutoExpand = false
    2. You  can use AdvMemo.WrappedText: string;

Thank you very much.