DelphiFAQ Home Search:
General :: Programming :: Delphi :: VCL
About the Delphi VCL (Visual Component Library)

Articles:

This list is sorted by recent document popularity (not total page views).
New documents will first appear at the bottom.

Only the 40 most recently viewed articles are shown.
You can see the full list here.

Featured Article

Have a TMemo/ TRichEdit scroll to the cursor position

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.

(To set the SelStart property to a x/y coordinate, also read this tip:
Access the current row/column of a TMemo.)

// scroll caret into view,
 // the wParam, lParam parameters are ignored
 SendMessage(Memo1.handle, EM_SCROLLCARET,0,0);
 

Generated 16:01:28 on Apr 22, 2018