Path: utzoo!utgpu!news-server.csri.toronto.edu!cs.utexas.edu!sun-barr!lll-winken!elroy.jpl.nasa.gov!mahendo!kura!steve From: steve@kura.Jpl.Nasa.Gov (Steve Schlaifer) Newsgroups: comp.sys.mac.programmer Subject: Re: THINK C class library CPane question Message-ID: Date: 28 May 91 18:16:58 GMT References: <4972@ryn.mro4.dec.com> Sender: news@mahendo.Jpl.Nasa.Gov Lines: 18 In <4972@ryn.mro4.dec.com> vanderpool@cals.enet.dec.com (Russ Vanderpool) writes: > [... >the KeepTracking routine is supposed to handle things that happen when the >mouse button is down. I tried putting my place routine in there also to >update the object's position for each new mouse location as it is moved. It >does not seem to do this. > ...... >In this subpane I have a bitmap. My ultimate goal to redraw this >bitmap as I drag it across my main pane. > ... ] In the TCL demo programs, there is a program called Art Class (a simple paint program). There is a class there called CDragger.c which is a sub-class of CPaintTask which is a subclass of CMouseTask that does just this. It drags a piece of a bitmap around on the screen as the mouse is moved. --Steve Schlaifer (steve@kura.jpl.nasa.gov)