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/

Reply via email to