In Windows 7, a memo control (TMemo
) will scroll automatically after text is insterted (Memo.Lines.Add(Path);
), which I do not want, because scrolling is done by myself.
How can I stop the automatic scrolling?
In Windows 7, a memo control (TMemo
) will scroll automatically after text is insterted (Memo.Lines.Add(Path);
), which I do not want, because scrolling is done by myself.
How can I stop the automatic scrolling?
Normally, adding text to a memo control scrolls the memo to the bottom of the inserted text. To prevent that, call
Lines.BeginUpdate
before adding text, and callEndUpdate
afterwards: