It smells to me the same way when I had similar problem with penDown and
PopList selections. PenDown ate all the rest (because most of it needed
'pen to be down').  The solution was to ask my event handler for penDown
IN THE LAST PLACE. Ie. first to ask if event was popSelectEvent ... and
when all the rest was checked if event was penDownEvent.
 I don't have PalmOS manuals here so I can't look for specific things
concerning your problem, but hope this would help.






On Tue, 30 Mar 1999, Fawcett, Mitch wrote:

> 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
> 
> 

Reply via email to