Link to home
Start Free TrialLog in
Avatar of Palamedes
PalamedesFlag for United States of America

asked on

Controlling the scroll bar on a TMEMO

I have a memo box that gets a bunch of stuff added to it every once in a while.. However I want the position to always be 0..

How do I do this?  

after the add, I want to be able to say, scrollbar.position:=0;  (just with Tmemo)  thanks

-pal
Avatar of gfody
gfody
Flag of United States of America image

If you are adding the new stuff via Memo.Lines.Add('new line') then the memo will scroll down.

If you add the new stuff like Memo.Text:=Memo.Text+'new stuff'; then the position will stay at the top.
Avatar of Palamedes

ASKER

Memo.lines+'blah';

doesnt work because String and TString arent compatible..

Also, just on a side note.. Please don't "ANSWER" the questions.. just comment on them, and if they answer the question, we can give you the points.. this way it keeps people from commenting further..

-Pal
Oh and further..

var BLAH : string;

Memo.text+BLAH;

ALso doesnt work..
ASKER CERTIFIED SOLUTION
Avatar of gfody
gfody
Flag of United States of America image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Thanks