Very clever Bernd, I like it! I tried it with v6 and v7 and the v7 improvement is great. I still see a little stutter compared to v6 but's hardly noticeable and certainly way better than before this tweak.
On Sun, Mar 8, 2015 at 12:18 AM BNig <bernd.niggem...@uni-wh.de> wrote: > Hi Jerry, > > modTableField has the same performance as a similar field (i.e. tabbed > date, > vScroll on) without "mod". > > The performance of live resizing in LC 7.x.x is less than stellar for a > field with more than about 1000 lines. > > The overhead of resizeControl in modTableField is negligible. > > Until LC 7.x.x speeds up rendering of text field for larger amount of data > during live resizing I resorted to a trick. > When resizing I only leave only 100 lines of data in the field and then > live > resizing is quite good. After resizing is done I put the original amount of > data back into the field. > > I have put up a stack with a sample modTableField that has 5000 lines of > data that demonstrates this. > > ----------------------------- > http://berndniggemann.on-rev.com/resizestack/ResizeStackMTF3.livecode.zip > ----------------------------- > > Of course this is a hack but I figure since resizing a stack is not done > very often the improved performance will compensate for some pecularities. > > But sort order is preserved and selectedLine restored after resizing. > > I think this is better than not being able to live resize the stack at all. > > the resizeStack script is in the card script. > > > > Kind regards > > Bernd > > > > -- > View this message in context: http://runtime-revolution. > 278305.n4.nabble.com/Text-Field-in-LC-7-tp4689761p4689872.html > Sent from the Revolution - User mailing list archive at Nabble.com. > > _______________________________________________ > use-livecode mailing list > use-livecode@lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your > subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode > _______________________________________________ use-livecode mailing list use-livecode@lists.runrev.com Please visit this url to subscribe, unsubscribe and manage your subscription preferences: http://lists.runrev.com/mailman/listinfo/use-livecode