Path: utzoo!utgpu!news-server.csri.toronto.edu!cs.utexas.edu!usc!rpi!dali.cs.montana.edu!milton!uw-beaver!zephyr.ens.tek.com!tektronix!percy!m2xenix!george From: george@m2xenix.psg.com (George Emery) Newsgroups: comp.sys.atari.st.tech Subject: Drawing rubber-bands Message-ID: <1991May23.160310.2034@m2xenix.psg.com> Date: 23 May 91 16:03:10 GMT Organization: Pacific Systems Group, Portland Oregon US Lines: 13 In drawing programs, it's common to allow lines between the mouse cursor and a fixed point. Another example is the rubber-band boxes for selecting a screen area. Would some kind soul tell me how they're done? It's easy enough to determine the start point by using the EventMulti loop to detect the mouse button's first click, but how does one keep track of the mouse cursor and draw to it AND know when the mouse button is clicked again? Is it necessary to drop out of the EventMulti loop and use lower-level facilities? george@m2xenix.psg.com