I've created a simple drawing program that stores the last position of the
pen then draws a straight line to the current position.  The program works
fine on the emulator but when I run it on my handspring I have a little
grudge.  When I click on the application to run it, I click on the icon and
it loads my program and draws a line from the top corner to the position
where I touched the icon.

Is there anyway to remove events in the frmOpenEvent without screwing
anything else up? Does someone have a different suggestion on how to
sidestep this problem?

Thanks

Nick

       case penDownEvent:
        if(eventP->screenY <148) //make sure the drawing doesn't affect the
buttons on bottom
        {
            old_x = eventP->screenX; //old_x and y are the "previous"
coordinates and are global
            old_y = eventP->screenY; //to this form.
            handled = true;
        }
           break;

        case penUpEvent:
       case penMoveEvent:
   if(eventP->screenY <148)
        {
          setdot(eventP->screenX, eventP->screenY); //calls WinPaintLine and
changes the "old" values
            handled = true;
           }
         break;




-- 
For information on using the Palm Developer Forums, or to unsubscribe, please see 
http://www.palmos.com/dev/support/forums/

Reply via email to