Recent

Author Topic: TMEMO  (Read 9135 times)

endik

  • New Member
  • *
  • Posts: 29
TMEMO
« on: May 12, 2007, 09:06:23 am »
Another issue:

I need to LoadFromStream and display in Tmemo, so I did:
Memo1.Lines.LoadFromStream(proces.Output),

it works, but then I need to LoadFromStream and display it in TMemo again and I do not know how add new text from stream to already existed in TMemo, each portion of text coming from stream occupies few lines

if I use
Memo1.Lines.LoadFromStream(proces.Output),
text in TMemo is replaced by new text coming from stream

Note that I cannot wait and display all text at once when the proces is done, I need to display it in parts and very often

ciao

eric

  • Sr. Member
  • ****
  • Posts: 267
RE: TMEMO
« Reply #1 on: May 12, 2007, 11:53:12 am »
I suppose that you could load the text into a stringlist first, then add it to the TMemo.

Eric

endik

  • New Member
  • *
  • Posts: 29
RE: TMEMO
« Reply #2 on: May 12, 2007, 01:45:20 pm »
amazing, it is working :)
Thanks Eric

eric

  • Sr. Member
  • ****
  • Posts: 267
RE: TMEMO
« Reply #3 on: May 12, 2007, 08:12:21 pm »
You're welcome :)

endik

  • New Member
  • *
  • Posts: 29
TMEMO
« Reply #4 on: May 12, 2007, 11:38:38 pm »
Eric, perhaps you could help me me other but related thing,
I need to have automatic scrolling down when TMemo is full, scroll up/down comes up but it is staying at the top and not scrolling down

thanks in advance

eric

  • Sr. Member
  • ****
  • Posts: 267
TMEMO
« Reply #5 on: May 13, 2007, 12:23:22 pm »
Memo1.SelStart := Length(Memo1.Lines.Text) - 1;

(with acknowledgement to theo)

Eric

endik

  • New Member
  • *
  • Posts: 29
TMEMO
« Reply #6 on: May 13, 2007, 07:55:45 pm »
working, thanks to both

eric

  • Sr. Member
  • ****
  • Posts: 267
TMEMO
« Reply #7 on: May 14, 2007, 04:09:18 pm »
:)

 

TinyPortal © 2005-2018