Relay-Version: version B 2.10 5/3/83; site utzoo.UUCP Path: utzoo!linus!philabs!prls!pyramid!hplabs!well!crunch From: crunch@well.UUCP (John Draper) Newsgroups: net.micro.amiga Subject: Intuition strangeness Message-ID: <1181@well.UUCP> Date: Fri, 30-May-86 08:53:53 EDT Article-I.D.: well.1181 Posted: Fri May 30 08:53:53 1986 Date-Received: Sun, 1-Jun-86 06:55:02 EDT Reply-To: crunch@well.UUCP (John Draper) Organization: Whole Earth Lectronic Link, Sausalito CA Lines: 62 I am trying to write a "mouse handler" to draw a rectangle on the screen, by pointing to an area, pressing a button, and while holding the button down, "Drawing out" the rectangle. Lets assume that " \" is the mouse pointer, when I press at "A", I pull the mouse down and to the right and want to end up at "B" with a rectangle drawn as shown below: A --------------- | | | | | | --------------- B\ <-- The "slash" is the mouse pointer. However, what I am getting is rather wierd. It appears that Intuition is passing back incorrect Delta X and Y's I an using DELTAMOVE flag set. The cursor does not seem to track the mouse. Instead, I am getting the following: A --------------- | | | \ | | | --------------- B Note the "\" in the middle of the square? It appears as I move the mouse button slowly to the right, the box grows TWICE as fast, the mouse cursor being exactly in the center of the box. The following code is done everytime Intuition passes a MOUSEMOVE event message. I come into this with "x" and "y" being the values in the IntuiMessage structure, As I have mentioned before, the DELTAMOVE flag is set in the IDCMPFlags. ----------------------------------------------------- if (rt_button) { /* $$$ */ if (erase) { draw_box(rp, OLeft, OTop, OWidth, OHeight); /* Erase old */ } Width += x; if (!siz_flag) Left += x; Height += y; if (!siz_flag) Top += y; draw_box(rp, Left, Top, Width, Height); OLeft = Left; OTop = Top; OWidth = Width; OHeight = Height; erase = TRUE; } -------------------------------------------------------------------- Is the delta X and Y values getting passed from intuition so far off from the mouse arrow pointer?? Please help!!! - It is really hanging me up in releasing the Gadget editor.