Path: utzoo!utgpu!news-server.csri.toronto.edu!rpi!zaphod.mps.ohio-state.edu!sol.ctr.columbia.edu!ira.uka.de!smurf!artcom0!hb.maus.de!ac2.maus.de!Stefan_Rupp From: Stefan_Rupp@ac2.maus.de (Stefan Rupp) Newsgroups: comp.sys.atari.st Subject: Drawing rubber-bands Message-ID: <5753@ac2.maus.de> Date: 31 May 91 15:36:00 GMT Article-I.D.: ac2.5753 Distribution: world,comp Organization: Maus Mailbox Netz - UUCP-Gateway Bremen Lines: 18 Hello, >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? No! If you want to follow the path of your mouse-cursor, you may do a event-multi call with parameter MU_M1 (Mouse-Event 1). Just set the width and height of the rectangle to 1 pixel and if you move the mouse and the cursor leaves the rectangle, you'll recieve a MU_M1-Event. Ciao, struppi