Frequently Asked Component Specific Questions
Options |
Display all FAQ items |
Displaying items 1 to 1 of 1, page 1 of 1
<< previous next >>
TAdvRichEditor
Use TAdvRichEditor as logging tool
Use TAdvRichEditor as logging tool
A technique that can be used to automatically scroll to the last line when programmatically adding lines for a logging system, is to set the caret to the last line with the SetCaret() method and then call AdvRichEditor.ScrollToCaret; Sample code:
begin advricheditor1.AddMultiLineText(''a new line ''+inttostr(t)); advricheditor1.AddLineBreak; inc(t); advricheditor1.SetCaret(cpEndDoc); advricheditor1.ScrollToCaret; end;