INTEGER; whichWindow: WindowPtr; ... BEGIN IF PtInRect(theEvent.where,toolRect) THEN ChooseTool(theEvent.where); IF PtInRect(theEvent.where,lineRect) THEN ChooseLine(theEvent.where); IF PtInRect(theEvent.where,patRect) THEN ChoosePat(theEvent.where); MacPaint.p