English Amiga Board


Go Back   English Amiga Board > Coders > Coders. General

 
 
Thread Tools
Old 22 December 2013, 23:48   #1
AGS
XoXo/Tasko Developer
 
AGS's Avatar
 
Join Date: Dec 2013
Location: Munich
Age: 48
Posts: 450
Happy 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
AGS is offline  
 


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

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT +2. The time now is 16:17.

Top

Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2024, vBulletin Solutions Inc.
Page generated in 0.06358 seconds with 15 queries