Slightly embarrassed now at how pleased I was to use 'case' instead of a mess of 'if thens' in my original script. I haven't tested this, but intermittently I can see how it should work. Clever.
So, if anyone else wants to use a deprecated HIG technique, THIS is the preferred method.
On 23 Apr 2005, at 8:27 am, [EMAIL PROTECTED] wrote:
on mouseMove X,Y
put the rect of fld "container" into Fred
if x,y is not within Fred then
put min (item 3 of Fred - 4, max (item 1 of Fred + 4, X)) into X
put min (item 4 of Fred - 4, max (item 2 of Fred + 4, Y)) into Y
set the screenMouseLoc to (left of this stack +X,top of this
stack + Y)
end if
end mouseMove
Best Wishes,
David Glasgow
http://www.i-psych.co.uk
_______________________________________________ use-revolution mailing list [email protected] http://lists.runrev.com/mailman/listinfo/use-revolution
