"Axel Bernard" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] > Mike Margerum wrote: > > I dont know if its the same problem you are having but we were getting > > blank lists when selecting a list item in the 2500 range with OS 3.5 We > > had to scroll the list after selecting an we were ok. > > We did something like this to make it draw properly > > LstSetSelection(listP, listIndex); > > if (listIndex > 2500) > > { > > topItem = LstGlueGetTopItem (listP); > > topItem -= 20; > > LstSetTopItem(listP, topItem); // does not > > update the display > > LstScrollList(listP, winDown, 20); // > > will update > > } > Thanks Mike. > It seems we have the same problem. > I almost rewrote the code using Tables, but anyway it's better to know > the workaround!
I can also confirm that this is a known bug in OS3.5 (and possibly OS4.0 an up.. I haven't tested it.) I ended up using the same workaround. I suggest writing yourself a "MyLstSetTopItem" function which acts as a wrapper, including detection of the current OS version and applying the correct workaround. Alan -- For information on using the Palm Developer Forums, or to unsubscribe, please see http://www.palmos.com/dev/support/forums/
