Did you try:

 memo.SelStart:=0;                     
 memo.SelLength:=0;
 memo.Invalidate;

 

-----Original Message-----
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf
Of [EMAIL PROTECTED]
Sent: Friday, April 21, 2006 7:46 AM
To: [email protected]
Subject: Return to top of memo field

Hopefully this will be a quick answer to a question that's been baffling me
for a while....

I'm writing output to a log file and using a standard TMemo component.
In my main processing, I add lines to the Memo as normal
Memo1.Lines.Add('some text'); I have approx. 100 lines in the Memo, and a
vertical scrollbar, but when I have finished adding lines to the Memo, I
need to return to the 1st line in the Memo rather than getting the User to
scroll up to the beginning themselves.
I've looked at all the properties of TMemo, and can't find one to do this
- can anyone help?
Ideally would like a Memo1.ReturnToTop property! 


Regards,
Steve Bowker


***************************************************************
Wincanton plc is a leading European provider of supply chain solutions.  We
design, implement and operate creative solutions for customers in 15
countries.  Our business has a turnover of over EUR2.4bn /1.68bn pounds and
employs 27,000 staff across 360 locations.  Warehousing, transport and
specialist services are provided for customers in a range of sectors
including automotive, retail, FMCG, petrochemicals and manufacturing.
Further information on our unique achievements and competencies can be found
by visiting 

www.wincanton.co.uk

****************************************************************
This e-mail and any files transmitted with it are confidential and intended
solely for the use of the individual(s) to whom it is addressed.  If you
have received this e-mail in error please contact IT Service Desk on +44 (0)
870 870 9393 or e-mail [EMAIL PROTECTED]

Any views or opinions expressed are solely those of the author and do not
necessarily represent those of Wincanton plc or any of its subsidiary
companies.  Unauthorised publication, use, dissemination, forwarding,
printing or copying of this e-mail and its associated attachment(s) is
strictly prohibited.
Wincanton plc, Methuen Park, Chippenham, Wiltshire SN14 0WT.
****************************************************************
_______________________________________________
Delphi mailing list -> [email protected]
http://www.elists.org/mailman/listinfo/delphi

_______________________________________________
Delphi mailing list -> [email protected]
http://www.elists.org/mailman/listinfo/delphi

Reply via email to