El 01/05/2013 13:45, Hans-Peter Diettrich escribió:

Unlike a ListBox, a Memo has a current character position. When that
position is not set properly, the "current" line may change with every
update.

Hello,

I know, but the problem seems to be located in the Windows Memo, after a few tests it behaves different if WM_SETREDRAW is involved and the back and forth for the text happends because to add text the code must select a line (or a new empty line to add new text) and replace it. This replace effect removes the line, adjusts the memo and then replace its position with the new line and add a carriage return and adjust again the memo. So lines goes up and down for each new line added.

From my point of view this is a Windows memo bug.


--


--
_______________________________________________
Lazarus mailing list
Lazarus@lists.lazarus.freepascal.org
http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus

Reply via email to