1. RE: Listview and time...
- Posted by Jonas Temple <jktemple at yhti.net> Apr 04, 2001
- 535 views
Euman wrote: > My guess is (and I'll keep working on it) that I'll need to get away > from the > win32libs mem functions > and poke in each subdata myself only to achieve nominal speed increase.. > > Any Suggestions? The only other trick in the SQL utility you looked at was the partial loading of the data. What I mean is I only load the first 100 records or so and then check when the user scrolls to the end of the current data. I then add the next block. If you want to bring up the data as quick as possible you might consider loading the first few records and then handling when the user actuall scrolls beyond the last item you inserted. Jonas
2. RE: Listview and time...
- Posted by David Cuny <euphoria_coder at HOTMAIL.COM> Apr 04, 2001
- 538 views
>Euman wrote: >My guess is (and I'll keep working on it) that I'll need to get away >from the win32libs mem functions and poke in each subdata myself only to >achieve nominal speed increase.. My impression was that most applications only load as much of the tree as needed, and dynamically add the nodes as the leaves are expanded. -- David Cuny
3. RE: Listview and time...
- Posted by Jonas Temple <jktemple at yhti.net> Apr 05, 2001
- 528 views
Derek Parnell wrote: > David's correct, and the only *really* tricky part is getting the scroll > bar > looking right. You might have to pretend that there are 2700 lines in a > listview when at any given time there are only what's visible. Oh, and > sorting could be fun too! Derek, Maybe this is not related but I accomplished incremental adding of list view items with the following event handler: procedure ResultsLV_onEvent ( int iMsg, atom wParm, atom lParm ) atom rtn_code, pos if iMsg = WM_VSCROLL then pos = sendMessage(ResultsLV, LVM_GETTOPINDEX, 0, 0) + 1 if pos >= last_rec - 20 then loadNextBlock() end if end if if iMsg = LVM_SORTITEMS then returnValue(True) end if end procedure onEvent[ResultsLV] = routine_id("ResultsLV_onEvent") This way you don't have to draw the scroll bar and it also handles the sorting issue (well, not really handling it, just ignoring it). Maybe this would be a routine to include in Win32Lib? Jonas
4. RE: Listview and time...
- Posted by Gerardo <gebrandariz at YAHOO.COM> Apr 05, 2001
- 517 views
Travis, ----- Original Message ----- From: Travis Beaty <travisbeaty at arn.net> Subject: Re: Listview and time... > Hello All! > > My wonderful M$ email problem -- I mean program -- informed me that this > post, and the one following, arrived on my computer on 12/31/99. Did this > happen to anyone else? And they thought the Y2K bug was dead ... > > Happy Hunting, > > Travis Beaty > Claude, Texas. Nope. And I _am_ using OE5 (Am I the only one who's never had a program -sorry- problem with OE5?). All messages correctly dated and, uh, houred (?) Maybe your ISP? Gerardo