Screen1 code looks like this:
object MoveMe is MediaScroller has MouseDown(theX, theY) do self.moveto(theX, theY); end; -- stuff here with X is 100, Y is 100 --etc. end;
When I leave Screen1, then return the object, MoveMe has returned to its
initial Coordinates of x=100 and Y=100. Is there a way for AMT to "remember"
changes made on a Screen?
A After you use MoveTo to move your object from 100,100 to 150,150, add these
lines:
Self.StartX := Self.X; Self.StartY := Self.Y;
StartX and StartY determine where the object is initially drawn on the screen.
Change them and it should behave the way you want when you return to the screen.
Main | Page One | What's New | Apple Computer, Inc. | Find It | Contact Us | Help