22 December 2013, 23:48 | #1 |
XoXo/Tasko Developer
Join Date: Dec 2013
Location: Munich
Age: 48
Posts: 450
|
How to build a ListView
Hello,
I am finetuning the performance of my listview class and wonder if there is an optimisation for this: When scrolling with the bar then for every new vertical position of the list the positions of the visible rows must be calculated anew. The rows are linked listrow-structures. At every new position I traverse the wohle list to find the lines that are visible and if yes to set their pos. But if the list is long, this takes time. Question is, if there is a way to keep the address of the first visible or partially visible (soft scrolling!) row and walk/draw the rows from there. So how can I know, when the scrollbar was moved, which row is my new top-row? Or can my goal reached in some other way? And there are also (sub)-folders in my list, which can be open or closed. And each odd row has an alternate color. The list works fine so far, but is slow on classic amigas. greez ags |
Currently Active Users Viewing This Thread: 1 (0 members and 1 guests) | |
Thread Tools | |
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
My A1200 build | N-Ed | Hardware mods | 5 | 24 September 2012 15:47 |
New build | N-Ed | support.Hardware | 8 | 05 May 2012 19:29 |
Build-It | Asle | HOL data problems | 2 | 29 November 2009 03:08 |
64 bit build | mangamuscle | request.UAE Wishlist | 1 | 24 March 2007 23:21 |
How to build the machine... | Shoonay | Amiga scene | 0 | 21 December 2004 20:24 |
|
|