??Drawing program source code out there?

I'm looking for some source code on how to move objects in a drawing program.  I want to be able to move an image or line or box or
anything, and move it or modify it.  

I've found plenty of code for just painting on a canvas.  I want the ability to pick up things from the canvas and move them around...like
Delphi does in Design time.

Source code for sale, shareware, or freeware....Thanks!