You are passing same point values for start point and end point of line.
You should rather have somewhere your last coordinates saved and after pen
is moved you draw a line from last pen position to the current pen
position...
        Also declare your variables of type Coord so it will not give any error..

        Hope his helps you.

-----Original Message-----
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED]]On Behalf Of
[EMAIL PROTECTED]
Sent: Monday, June 11, 2001 3:08 PM
To: Palm Developer Forum
Subject: Please fix my penX and penY code.


I am not really sure what I am doing wrong. Can someone please fix my code
and tell me what they did so it will help my learning the palm OS
programming platform? Thanks!

                  GOD Bless!!!

case penMoveEvent:
int x,y;
int penX,penY;
Boolean             penDown;
EvtGetPen(penX, penY, penDown);
        penX=x;
        penY=y;
/*************************************************/
you are wrong in the above assignment
/*************************************************/
         WinDrawLine (penX,penY,x,y);

        break;

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

Reply via email to