try changing:

EVENT_MAP_ENTRY(sclEnterEvent, OnScroll)
to:
EVENT_MAP_ENTRY(sclRepeatEvent, OnScroll)

...got this from doing a search at the POL site ( http://www.pollib.com/ )


"Mark Chauvin" <[EMAIL PROTECTED]> wrote in message
news:[EMAIL PROTECTED]
> How do you capture scroll bar events in POL? I've tried these variations
and
> they don't work:
>
> class CMyForm : public CForm {
> public:
> ...
> Boolean OnScroll(EventPtr pEvent, Boolean& bHandled);
> Boolean OnScroll2(ComponentEventPtr pEvent, Boolean& bHandled);
>
> BEGIN_EVENT_MAP(CForm)
>     EVENT_MAP_ENTRY(sclEnterEvent, OnScroll)
>     EVENT_MAP_COMPONENT_ENTRY(ctlEnterEvent, TestFeedbackSliderControl,
> OnScroll2)
>     EVENT_MAP_COMPONENT_ENTRY(sclEnterEvent, TestFeedbackSliderControl,
> OnScroll2)
>     EVENT_MAP_COMPONENT_ENTRY(penDownEvent, TestFeedbackSliderControl,
> OnScroll2)
> END_EVENT_MAP()
> };
>
> TestFeedbackSliderControl is a feedback slider, but I've tried making it a
> regular slider and it doesn't work that way either.  I just need to run
> OnScroll whenever the user moves the scroll bar, which is not attached to
> any text or memo field.
>
> Thanks
> -Mark
>
>



-- 
For information on using the Palm Developer Forums, or to unsubscribe, please see 
http://www.palmos.com/dev/support/forums/

Reply via email to