Try getting the event: EvtGetEvent( &event, 1 ); Then check to see if event is a penDownEvent. Hope that helps! -Rus >-----Original Message----- >From: Prasad [mailto:[EMAIL PROTECTED]] >Sent: Thursday, August 10, 2000 1:10 PM >To: Palm Developer Forum >Subject: How to break an infinite loop when a pendown event fires? > > >Hi all, > How to break an infinite loop when a pendown event >fires?Can any body in >this snippet code ? > > FrmNewGadget(&frm, 1250, 10, 60, 140, 30); > FrmDrawForm(frm); > FrmGetObjectBounds(frm, FrmGetObjectIndex(frm,1250), &gR); > WinDrawRectangleFrame(1, &gR); > FntSetFont(largeBoldFont); > > while(true) > { > tempstr = MemPtrNew(10); > StrNCopy(tempstr, newText, 10); > WinDrawChars(tempstr,10, gR.topLeft.x + 20, gR.topLeft.y + 5); > MemPtrFree(tempstr); > > newText = newText + 10; > SysTaskDelay(50); > WinEraseRectangle(&gR, 0); > /*EvtGetEvent(&event, -1);*/ > } > >I would like to break this loop when a pendown event occurs. >Any help???? > >thanks >Prasad > > >-- >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/
