> I think I can see a pretty straightforward way to make this work as > long as you give up the requirement that the user can drag within > the list itself in order to scroll. That part seems quite tricky.
Oh, that's not a problem. In fact, I *want* to avoid scrolling when the user drags within the list; that action kept confusing me and I was wondering which event to intercept, in order to avoid it. :-) > To make the rest of it work, I think only one key insight is > required: it seems like it would help a lot not to think of > the scrollbar as scrolling. Instead, think of having multiple > different lists, and think of the scrollbar as *selecting* one > of the lists to be the one that gets displayed on screen. The way I am thinking of the scrollbar is as and index in the database that contains the list values. Then what needs to be displayed in the list is the items from that point forward, as many of them as would fit on the screen portion of the list (but no more). As I said, I more or less understand the theory behind this thing. It's the actual implementation that was eluding me... Anyway, I think I got the problem solved. Well, it works for my application anyway. Tomorrow I'll try to clean it up (e.g., remove all parts relevant to my application only - like the format of the entries kept in the database and displayed on the list - and also test some boundary conditions - e.g., when the list contains fewer items than would fit on the screen) and will try to write a small illustrative application and will post it here - so that the other newbies who start banging their heads on this problem could be pointed to it in the future. > Figuring out which item the user selected is a bit more > complicated than it normally is, but actually it's not that bad: > you just LstGetSelection() and add its result to the scrollbar's > current position, if you made the scrollbar zero-indexed. Yes, of course, I had figured this one. It was the actual drawing of the list when the user scrolls that was the problem. But I think I managed to solve it. Regards, Vesselin -- For information on using the Palm Developer Forums, or to unsubscribe, please see http://www.palmos.com/dev/support/forums/
