Page 1 of 1

PostPosted: Thu Sep 12, 2002 7:04 am
by SyPDA

Is it possible to catch the pagedown event in a Ressource List?

I'd like to update a second list when the first one changes.

I use the following line:

case LIST1:

But this will not update the second list, if there are more entries and you use the small page up/down arrow.

Thanx for your help.

PostPosted: Thu Sep 12, 2002 11:53 am
by jstadolnik
Unfortunately, the PalmOS only provides list events for entering, exiting, and selecting items in a list. There is no way to trap the list arrow events, however...

I did some digging and there is a trick to fake this out, which is to create your own list arrows (buttons) and do the scrolling yourself. In order for this to work you need to guarantee that the total number of items in the list never exceeds the max number of allowable visible items for that list, otherwise the automatic scroll arrows will appear. To fake out the scrolling you just change the contents of the list to show the appropriate items.

This is surely more cumbersome, but it will allow you to synchronize the behavior of many standalone lists at once (i.e. achieve a table like effect).


The PToolboxLib guy.

PostPosted: Thu Sep 12, 2002 11:59 am
by SyPDA
Hrmpf... Well, I will try this... :)

Thank you for the fast answer... :)

PostPosted: Thu Sep 12, 2002 2:11 pm
by jstadolnik
You can also use a scrollbar instead of buttons if you'd like.


The PToolboxLib guy.