Dragging Lines in a Field
Phil Davis
phildavis at attbi.com
Wed Apr 24 15:41:00 EDT 2002
I haven't been paying total attention to this thread, but wouldn't it work if your script said:
set the loc of the target to x,y
Seems like that would be about as simple as it gets. Then you don't have to be concerned with getting or passing *any* info about the target control.
Phil
----- Original Message -----
From: <Larry_R_Huisingh at rl.gov>
To: <metacard at lists.runrev.com>
Sent: Wednesday, April 24, 2002 11:48 AM
Subject: Re: Dragging Lines in a Field
> Thank you very much for your script sample. I implemented it with one minor
> change I needed. When I tried your code whenever I tried dragging a button
> on my card a different object (part of a group) would move instead. I had
> to change your code in the mouseMove handler from
>
> set the loc of control gDragObj to x,y
>
> to
>
> set the loc of card button gDragObj to x,y
>
> I think it has to do with the use of "the number of the target" used in the
> mouseDown handler. For my stack the number of the intended target was 1 but
> "control" number 1 was a different object.
>
> Perhaps this is related to the fact that the button I was trying to move was
> placed on top of the group mentioned above (but not part of it).
>
> Another solution is to use
>
> put the long name of the target into gDragObj
>
> in mouseDown and then use
>
> set the loc of gDragObj to x,y
>
> in mouseMove. This may be a better generic solution.
>
> Larry Huisingh
>
> >
> > I am writing a web page that explains how to avoid that, and
> > how to use
> > the moveMove message instead of a repeat loop. It isn't
> > linked into my
> > site yet and I am still working on it, but you can read what
> > I have so
> > far if you like:
> >
> > http://www.hyperactivesw.com/polling.html
> >
> _______________________________________________
> metacard mailing list
> metacard at lists.runrev.com
> http://lists.runrev.com/mailman/listinfo/metacard
>
More information about the metacard
mailing list