I would like to implement non-dynamic scrolling but I am having trouble
finding any data to process. I would like to respond to "activeRegion" data
of the ScrollBarAttrType but I can't get any data.
Thanks
Paul
>Steve Strelzyk <[EMAIL PROTECTED]> wrote in message
news:41346@palm-dev-forum...
>
> Paul,
>
> I have added a sclRepeatEvent handler to the form event handler that
> contains the scrollbar. I then pass the number of rows scrolled to update
> my table. Hope this helps.
>
> case sclRepeatEvent:
> frmP = FrmGetActiveForm();
> tableP = (TablePtr) FrmGetObjectPtr( frmP,
> FrmGetObjectIndex( frmP, PATIENT_FRMPATIENT_TBLTable) );
> PatientScrollRows(eventP->data.sclRepeat.newValue -
> eventP->data.sclRepeat.value);
> handled = false;
> break;
>
> static void PatientScrollRows(SWord numRows) {
> FormPtr frmP = FrmGetActiveForm();
> TablePtr tableP = FrmGetObjectPtr (frmP, FrmGetObjectIndex (frmP,
> PATIENT_FRMPATIENT_TBLTable));
>
> gTopVisibleItem += numRows;
>
> if (gTopVisibleItem < 0)
> gTopVisibleItem = 0;
>
> PatientFormLoadTable(frmP);
> TblRedrawTable(tableP);
> }
>
>
> Steve Strelzyk
> Software Engineer
> Lattice, Inc
> Phone (630) 949-3250 x278
> (800) 444-4309 x278
> Fax (630) 949-3299
> Email mailto:[EMAIL PROTECTED]
>
> -----Original Message-----
> From: [EMAIL PROTECTED]
> [mailto:[EMAIL PROTECTED]]On Behalf Of Paul
> Groschen
> Sent: Thursday, March 01, 2001 5:45 PM
> To: Palm Developer Forum
> Subject: ScrollBarAttrType
>
> Anyone use this structure "ScrollBarAttrType" to read scroll bar events? I
> have a struct pointer to my scroll bar but no data appears to change when
I
> operate on the scroll bar. I use sclExitEvent or sclEnterEvent for my
event
> trigger doesn't make any difference.
>
> Thanks
> Paul
>
>
>
> --
> 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 Palm Developer Forums, or to unsubscribe, please see
http://www.palmos.com/dev/tech/support/forums/