Did you try with tblSelect event?
Bozidar
> I know what I'm trying to do is elementary, but I'm stuck. I
> want my app to
> detect a pen down event when the user taps within the boundary of a table.
> But I want the table to also respond by highlighting the selection and
> storing the text of the table item in a string.
>
> I have some code in my form handler to detect the tap, but it
> eats the tap.
>
> By the way, I haven't been able to get onto the Massena news server today
> (3/30/99). Could be just me and my funky pc however.
>
> static Boolean MainFormHandleEvent(EventPtr event)
> {
> Boolean handled = false;
>
> switch (event->eType)
> {
> case penDownEvent:
> // Did the pen tap within tblSel's boundaries?
> if ((event->screenX > SEL_LEFT) && (event->screenX < SEL_LEFT +
> SEL_WIDTH) \
> && (event->screenY > SEL_TOP) && (event->screenY < SEL_TOP +
> SEL_HEIGHT))
> {
> FrmCustomAlert(MyAlert, gsFlag1 , gsFlag2, gsFlag3); //
> THIS ALERT EXECUTES.
> gboTableTapped = true; // set flag (global)
> handled = false; // need to process events triggered by
> the pendown.
> break;
> }
>
> case tblSelectEvent: // Clicked on a table
> if (event->data.tblEnter.tableID == tblSel)
> {
> if (gboTableTapped == true)
> {
> // do some stuff... like store the item text in a string.
> FrmCustomAlert(MyAlert, gsFlag1, gsFlag2, gsFlag3); //
> THIS NEVER EXECUTES.
> }
> handled = true;
> break;
> }
> }
> }
>
> // end ************************************************
> // Mitch
>
>