I also have a list of 20,000 items, 11 visible at once. When I use the LstSetTopItem function to move the list to an item between (approx) 2975 and 5950 or 9925 to 11900, and call a LstDrawList, the list draws, the immediately erases itself. This only happens between alternate ranges...i.e.: the first 2975 items work fine, the second 2975 don't the third work fine, the fourth don't etc...
If I use the up/down buttons on the right hand side of the listbox to scroll the list where it is currently invisible, it redraws OK. I originally thought the fault was with my List drawing function, but stepping through the screen drawing process, the screen is erased immediately AFTER the last line is drawn, and my function has finished... Please help, as this is a VERY annoying bug, and it's driving me crazy trying to work it out! By the sound of things, this seems to be a bug in the PalmOS! Regards, Alan Ingleby Systems Developer ProfitLink Consulting Pty Ltd 309 Burwood Road Hawthorn Victoria 3122 "Michael Ryan" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] > > I've got a listbox with a list of about 4,000 items. For all the listbox > drawing commands we use a simple callback function to simply draw items to > the listbox depending on user criteria. In Palm OS 3.5 we have a strange > problem where just after the callback function is done all the listbox > drawing functions will randomly erase items off the listbox. They're still > marked as visible yet they don't show up on the screen. I know that it's > not the callback function as I've placed breakpoints at the end of the > function to watch the values dance through. At the very end of the last > iteration of the callback function everything is displayed correctly on the > listbox and in between the time it takes for the listbox command to return > to the previous code it suddenly erases much of the items in the listbox. > > Has anyone else had this problem? If so, have you found acceptable > workarounds? I've tried various combinations of the listbox routines from > list.h and nothing seems to work. > > We only have this problem with OS 3.5. All the other OSes work as they > should. > > Thanks, > Michael Ryan > > > > -- For information on using the ACCESS Developer Forums, or to unsubscribe, please see http://www.access-company.com/developers/forums/