Or set the scroll bar position to 0 and 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


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

Reply via email to