1. For the ListView Pros.
- Posted by Tony Steward <figjam at nlc.net.au> May 21, 2001
- 382 views
Hi All, 2 things, Firstly it seems to me that setIndex(LV, x) does not work with list views. I have a listview of nearly 2000 items so I want an input box where when I type into it the onChange event will scroll the LV to the appropriate item. I can to this with normal lists but not LV. Secondly loading a listview with this number of items is painfully slow, I currently read a EU database and fill the list. It seems to me that if I can see the scroll bar shrinking as I add items it must be redrawing the LV after adding each item, this would slow it down considerable. Is there a better way, I seem to remember some talk on this a while ago. Thanks Tony Steward
2. Re: For the ListView Pros.
- Posted by Derek Parnell <ddparnell at bigpond.com> May 22, 2001
- 362 views
Hi Tony, ----- Original Message ----- From: "Tony Steward" <figjam at nlc.net.au> To: "EUforum" <EUforum at topica.com> Subject: RE: For the ListView Pros. > Thanks for replying, Ok this looks like it is over my head I think my > customers will have to put up with slow loading. I haven't tried but do you > think E to C compliler would help. No, I doubt that it would as all the time is probably being taken up inside the Windows DLL code rather than in your application. I'll see what I can do to optimise loading items in the next release (or two). > Can you tell me how many items I can have in a list view. I didn't realize > it was limited. > The number of items is really only limited by memory, but of course the more you "load" in to the ListView the slower it will be. A "virtual" listview simulates loading heaps of data but in fact only loads what would be visible at any one time. Yes, it is not easy 'cos you have to handle scrolling etc... Another idea, if loading time is the issue, why don't you see if hiding the listview during loading (maybe a "please wait..." message) and showing it when all is loaded. This might speed it up a bit if it's not doing all the graphics during the load. ------ Derek Parnell Melbourne, Australia "To finish a job quickly, go slower."