At 12:00am -0800 00-11-17, Palm Developer Forum digest wrote:
>Subject: Re: OS 3.5, listboxes with large amounts of data
>From: "Alan Ingleby" <[EMAIL PROTECTED]>
>Date: Fri, 17 Nov 2000 16:47:36 +1100
>X-Message-Number: 85
>
>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,

It is.

>and that my suggestion is an
>acceptable workaround.

It looks OK to me.

>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.

LstDrawList has the bug, so minimizing calls to it is a good idea. If 
you have a regular (not pop-up) list in a form, though, the 
LstDrawList routine will get called by FrmDrawForm, so there are 
still cases where the bug could show up.

-- Ken

Ken Krugler
TransPac Software, Inc.
<http://www.transpac.com>
+1 530-470-9200

-- 
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