Author: Tomas Rutkauskas
Have a TMemo/TRichEdit scroll to the cursor position
Answer:
After placing the cursor at the desired position using the SelStart property,
you should use the EM_SCROLLCARET message to scroll the caret into view,
as shown in the piece of code below.
1 2 // scroll caret into view,3 // the wParam, lParam parameters are ignored4 SendMessage(Memo1.handle, EM_SCROLLCARET, 0, 0);