is there a better way to scroll to the bottom than 
     memo1.VertScrollBar.Position := memo1.VertScrollBar.Range;

if this is the best or at least is as good a way as most 
then could we just add a method

procedure TCustomMemo.ScrollToBottom;
begin
//  memo1.VertScrollBar.Position := memo1.VertScrollBar.Range;
  FVertScrollbar.Position := FvertScrollbar.Range;
end;

i'd also like to suggest perhaps a property "keepscrolling" where
 in the append method we check to see 
      if keepscrolling then
       if FVertScrollbar.Position >= (FvertScrollbar.Rangerange-1) then 
scrolltobottom;
so if they haven't purposely scrolled up and selected keepscrolling then keep 
scrolling down. 
then when the scroll back down it will start scrolling again.

and i know it needs to be a bit more complicated to cover all methods of 
inserting into a memo.
---dale

_________________________________________________________________
     To unsubscribe: mail [EMAIL PROTECTED] with
                "unsubscribe" as the Subject
   archives at http://www.lazarus.freepascal.org/mailarchives

Reply via email to