LstSetSelection()? I use LstScrollList() ...
--
-Richard M. Hartman
[EMAIL PROTECTED]
186,000 mi/sec: not just a good idea, it's the LAW!
Schettino, John wrote in message <[EMAIL PROTECTED]>...
>
>In other words, in your form with the list's event handler:
>
>case keyDownEvent:
> switch (eventP->data.keyDown.chr) {
>
> // pageup hardware key
> case pageUpChr:
> { Word selection;
>
> handled = true;
> selection = LstGetSelection(list);
> if (selection != noListSelection) {
> selection--;
> if (selection < 0)
> selection =
>LstGetNumberOfItems(list) -1; // wrap to beginning
> LstSetSelection(list, selection);
> }
> }
> break;
>
> // pagedown hardware key
> case pageDownChr:
> { Word selection;
>
> handled = true;
> selection = LstGetSelection(list);
> if (selection != noListSelection) {
> selection++;
> if (selection == LstGetNumberOfItems(list))
> selection = 0; // wrap to beginning
> LstSetSelection(list, selection);
> }
> }
> break;
> }
> break;
>
> --
> John Schettino
> Palm OS Programming For Dummies: http://schettino.tripod.com
>
>-----Original Message-----
>From: Richard M. Hartman [mailto:[EMAIL PROTECTED]
>Sent: Thursday, June 22, 2000 9:41 AM
>To: Palm Developer Forum
>Subject: Re: strange list scroll bug
>
>
>Lists don't know nuthin' 'bout no hardware buttons.
>
>For the list to scroll with the buttons the form handler
>has to catch the hardware button presses and tell the
>list to scroll.
>
>--
>-Richard M. Hartman
>[EMAIL PROTECTED]
>
>186,000 mi/sec: not just a good idea, it's the LAW!
>
>Charles Rezsonya wrote in message <[EMAIL PROTECTED]>...
>>
>>one of our clients said that on differant circumstances the need to scroll
>>the list with the up and down buttons doesn't work. this may be narrowed
>>down to a forms action before (some buttons being hidden due to access
>>levels). i'm didn't even know that the list can be non-scrollable with
the
>>buttons, but stylus and screen taps do scroll them.
>>
>>has anyone had this occour? may there be something being currupted? if
>so,
>>where can i begin looking?
>>
>>tia
>>Charles
>>
>>
>>
>
>
>
>--
>For information on using the Palm Developer Forums, or to unsubscribe,
>please see http://www.palmos.com/dev/tech/support/forums/
>
>
--
For information on using the ACCESS Developer Forums, or to unsubscribe, please
see http://www.access-company.com/developers/forums/