Hi Shouldn't the BeginUpdate and EndUpdate in TMemo.Lines prevent the GUI from updating, thus allowing quickly adding many lines?
I made a test app which generates a big amount of random data and has 2 methods to add it to a Memo. 1. uses a temporary StringList and finally calls Assign. 2. adds the strings directly to Memo.Lines between BeginUpdate and EndUpdate. Method number 1. is about 40 times faster! I expected method number 2. to be the fastest. The strange thing is that Assign() also uses BeginUpdate and EndUpdate, and then calls AddStrings() which has its own BeginUpdate and EndUpdate. IMO it should behave identically with Memo.Lines.Add inside BeginUpdate / EndUpdate. I can send the test app if needed. Juha -- _______________________________________________ Lazarus mailing list [email protected] http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus
