[comp.sys.mac.programmer] Dragging of an arbitray object

limh@mist.CS.ORST.EDU (Lim Mu-Hong) (05/23/89)

I am doing my project, which is building an application prototype.  I ran 
into the problem with dragging an ARBITRARY object and hope that someone 
who has done something similar to this can offer me some help.  

What I am doing is a picture object design.  My application has a set of 
tools to allow the user to design his picturee in a window, eg. square, 
rectangle, circle, oval, line.  I also allow the user to drag any portion 
of his picture.  To drag, he must first draw a rectangle frame to include 
everything that he wants to drag.  Then, pressing in the rectangle frame
and then moving the mouse will move the portion that is inside the frame 
(.  Here is where my problem came in.  I can find the new location, but, 
I do not know how to redraw the portion dragged in the new location.  This 
is because the portion dragged can be any arbitrary object.  It can be 
part of a circle, 1/8 of an oval etc.  Thus, it is impossible to save the 
QuickDraw routine...

By the way, the picture design will later be saved in the resource file 
of the type PICT.

I would be very apprecaite if someone can help me or give me some advice.

Thank you in advance