I am trying to do a "rubberband" similar to what a paint,cad program does.
i tried to use the COMPLEMENT mode and then the JAM1 mode,here is a sample
Line()
{
line=TRUE;
SetDrMd(RastPort,COMPLEMENT);
SetAPen(RastPort,red);
while(line)
{
getintuimessage…..;
ReplyMsg(message);
if(mycode==SELECTUP)line=FALSE;
Drawline();
Drawline();
}
SetDrMd(RastPort,JAM1);
Drawline();
}
the function does draw a line at the end…but when you have not released
the mousebutton the screen still blank!!!.
what am i doing wrong????
Ed.