• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 449
  • Last Modified:

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
0
Palamedes
Asked:
Palamedes
  • 3
  • 2
1 Solution
 
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
 
PalamedesAuthor Commented:
Thanks
0

Featured Post

[Webinar] Kill tickets & tabs using PowerShell

Are you tired of cycling through the same browser tabs everyday to close the same repetitive tickets? In this webinar JumpCloud will show how you can leverage RESTful APIs to build your own PowerShell modules to kill tickets & tabs using the PowerShell command Invoke-RestMethod.

  • 3
  • 2
Tackle projects and never again get stuck behind a technical roadblock.
Join Now