Re: Listview and time...
- Posted by Euman <euman at bellsouth.net> Apr 05, 2001
- 455 views
Hello, Alright I faked the black out (Blanking) of the listview by creating a pixmap of the listview then blit the pixmap when my loop to insert the items to the LV is complete.... If you dont know what Im talking about (Blanking) then try to load 1000 records - 7 LV_columns wide. Did you notice the Listview disappear until the last record was inserted? Euman ----- Original Message ----- From: "Jonas Temple" <jktemple at yhti.net> To: "EUforum" <EUforum at topica.com> Sent: Thursday, April 05, 2001 10:53 Subject: RE: Listview and time... > > > > 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 > > > > >