Quoting Kevin Wong <[EMAIL PROTECTED]>:

> Hi All,
> 
> Can anyone tell me how can I set a WM_KEYDOWN Windows message to the same
> as the user pressing a combination of [Ctrl + Home] under Delphi?
> 
> I populate a TMemo control with text and I want it to scroll back to the
> first line after the operation.  I can't find any method that I can use
> other than sending a WM_KEYDOWN Message to the control with the key strokes
> mentioned.
> 
> Any help appreciated.


IIRC it is simply a matter of setting SelStart:=0, SelLength:=0 to move the 
cursor back to the start of the memo.

---------------------------------------------------------------------------
    New Zealand Delphi Users group - Delphi List - [EMAIL PROTECTED]
                  Website: http://www.delphi.org.nz

Reply via email to