I wrote earlier:

> I use a plain list as a 2-column list where one is a checkbox.
> I handle penDownEvents to see if the checkbox column was tapped
> and toggle its status. If the list is scrolled, I must know the
> absolute index of the tapped row, but LstGetTopItem only works
> as of OS 4.0. How can I get this info otherwise? The other
> possible approach I see is working on lstSelectEvents, checking
> the tap XY coordinates and eventually toggle the checkbox.
> Or foul the list into thinking it cannot scroll, and manage a
> scrollbar on the side.

Never mind. I tried playing with the lstEnterEvent, but the selection element 
is not set. And checking the topItem element of
the ListType would popup warnings from POSE. I checked the
lstSelectEvent, but it gets fired only after the pen is up, so
given that I needed a callback draw proc in any case, I replaced my
list by a gadget and handled selection and checkbox toggling in the
penDownEvent handler. Everything's fine.


Luc Le Blanc
-- 
For information on using the ACCESS Developer Forums, or to unsubscribe, please 
see http://www.access-company.com/developers/forums/

Reply via email to