I don't know if you would call this an OS bug, a documentation bug, a combination, or just my own stupidity for letting it happen in the first place. For what it's worth: If you call LstSetTopItem with a -1, it doesn't catch the error. Perhaps a -1 for a list's top item is a valid setting, indicating there is no top item (i's used to indicate there's no current list selection). The docs aren't clear. However, when you call LstDrawList, it calls your callback function N - 1 times (N is the # of visible items in the list), starting at the screen location of the second line of the list, passing 0 as the first list item # to draw. Figuring this out, I tried a little test. If you call LstSetTopItem with a -2, it also doesn't catch the error (that doesn't seem like a valid setting). When you call LstDrawList, it calls your callback the correct # of times, passing the proper screen coordinates, but it passes -2 as the first list item to draw, followed by 0, 1,.... Regards, Steve Mann ------------------------------------------- Creative Digital Publishing Inc. 1315 Palm Street, San Luis Obispo, CA 93401-3117 ------------------------------------------- 805.784.9461 805.784.9462 (fax) [EMAIL PROTECTED] http://www.cdpubs.com -- For information on using the Palm Developer Forums, or to unsubscribe, please see http://www.palm.com/devzone/mailinglists.html
