At last a breakthrough!!  I have a pretty good workaround for the "OS3.5
Large Lists" bug!!  BTW: If David Fedor is reading this, I'd really
appreciate confirmation that this IS a bug, and that my suggestion is an
acceptable workaround.

This is the type of code that buggers up under 3.5:

      LstSetTopItem(listPtr, index);
      LstEraseList(listPtr);
      LstDrawList(listPtr);

So just replace it with this...

      LstSetTopItem(listPtr, index - 12);
      LstScrollList(listPtr, 1, 12);

Obviously you have to check that your index is not less than 12 to begin
with, but if it is, the normal drawing code works anyway so who cares?

Let me know if this fixes your problems.  I know it's fixed mine.

Regards,

Alan Ingleby
Systems Developer
ProfitLink Consulting Pty Ltd
309 Burwood Road
Hawthorn
Victoria 3122
"Michael Ryan" <[EMAIL PROTECTED]> wrote in message
news:29820@palm-dev-forum...
>
> 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 Palm Developer Forums, or to unsubscribe, please see 
http://www.palmos.com/dev/tech/support/forums/

Reply via email to