After adding your data, set the SelStart and SelLength properties to 0. This
will move the carot to the top of the memo, and so it should display the
first 5 lines.

Cheers,
  Andrew Cooke.

> -----Original Message-----
> From: S J Galyer [SMTP:[EMAIL PROTECTED]]
> Sent: Tuesday, April 27, 1999 8:48 PM
> To:   Multiple recipients of list delphi
> Subject:      [DUG]:  TMemo Cursor Position
> 
> Hi,
> 
> I have a TMemo which has a height that will display 5 lines - I load it
> with 10 lines of data. When I display it it displays the last 5 lines, but
> I want to display the first 5 lines.
> 
> Can anyone help?
> 
> Thanks
> Steve Galyer
> --------------------------------------------------------------------------
> -
>     New Zealand Delphi Users group - Delphi List - [EMAIL PROTECTED]
>                   Website: http://www.delphi.org.nz
---------------------------------------------------------------------------
    New Zealand Delphi Users group - Delphi List - [EMAIL PROTECTED]
                  Website: http://www.delphi.org.nz

Reply via email to