[comp.sys.mac.programmer] Strangeness in Art Class

crunch@well.UUCP (John Draper) (09/30/89)

   I FINALLY got my update,  and noticed a little strange behavior
in how the "Art Class demo" drags objects around on the screen.

   Every now and then,   it gets "Stuck" and seems to be constrained
to some artificial and un-predictable boundary.    Has anyone else
experienced this problem.    I then wrote my OWN "Drag task" in a simple
Erase/draw/   etc loop,  and when I removed the PininRect call defined
in OSUtilities.c,   it seems to go away.   I just overrode the TrackMouse
without the "PininRect()" calls,   and everything seems to work OK.   The
PininRect call is called the TrackMouse method in CView.

   Would someone from Symantic please give me an explanation of the
purpose of PininRect?   I think it's just used to constrain the dragging
operations to within some specified rect boundary.   I then tested my rect
boundary (Of the enclosing pane),  and it seems properly fitted to the
scrolling panorama.    Perhaps there is something else I overlooked.

   Other than that,  everything works great,  now I have a nifty little
task that allows me to "mouse in" special "panes" by dragging out a rect
and putting it in place.    Gack!! Even the UNDO and Redo worked on the
first try.  I am amazed...

John D.
Programmers Network