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
LVL 4
PalamedesAsked:
Who is Participating?
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

gfodyCommented:
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.
0
PalamedesAuthor Commented:
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
0
PalamedesAuthor Commented:
Oh and further..

var BLAH : string;

Memo.text+BLAH;

ALso doesnt work..
0
gfodyCommented:
sorry.. I meant memo.text:=memo.text+'blah'
0

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
PalamedesAuthor Commented:
Thanks
0
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
Delphi

From novice to tech pro — start learning today.