Ah - Lines DOES have BeginUpdate and EndUpdate methods, and they work. LockWindowUpdate(memo1.Handle); seemed to also work too, but did something funny near the end where it started to update when it was about 80% through.
Thanks people. Steve On 01/08/07, Alister Christie <[EMAIL PROTECTED]> wrote: > Perhaps: > > sl := TStringList.Create; > sl.Assign(memo1.lines); > //process sl > memo1.lines.Assign(sl); > > > Alister Christie > Computers for People > Ph: 04 471 1849 Fax: 04 471 1266 > http://www.salespartner.co.nz > PO Box 13085 > Johnsonville > Wellington > > > > Steve Peacocke wrote: > > Bloody stupid question I know, but I spent all day traversing 3 tons > > of spaghetti code and my mind is mush. > > > > Is there a way that I can tell a tMemo component not to keep updating > > when I process all the lines. > > > > I have a tMemo component with, lets say 5-10,000 lines. I want to > > process through each of those lines updating certain ones where > > necessary. > > > > for i := 0 to Memo1.lines.Count - 1 do > > If (Memo1.lines[i] = 'I can use this line') then > > DoThingsToTheLine; > > > > The problems is that I want to have the tMemo remain on the form, but > > I don't want it to keep updating to try to keep up with the current > > line that I'm processing. > > > > I've already tried Memo1.Enabled := false, but the frigging thing > > still keeps updating. > > > > I don't want to make it invisible as it looks really horrible. > > > > Any suggestions? > > > > Steve > > > _______________________________________________ > NZ Borland Developers Group - Delphi mailing list > Post: [email protected] > Admin: http://delphi.org.nz/mailman/listinfo/delphi > Unsubscribe: send an email to [EMAIL PROTECTED] with Subject: unsubscribe > -- Steve Peacocke http://stevepeacocke.blogspot.com/ _______________________________________________ NZ Borland Developers Group - Delphi mailing list Post: [email protected] Admin: http://delphi.org.nz/mailman/listinfo/delphi Unsubscribe: send an email to [EMAIL PROTECTED] with Subject: unsubscribe
