Path: utzoo!utgpu!news-server.csri.toronto.edu!rpi!usc!elroy.jpl.nasa.gov!decwrl!pa.dec.com!nntpd.lkg.dec.com!ryn.mro4.dec.com!cals.enet.dec.com!vanderpool From: vanderpool@cals.enet.dec.com (Russ Vanderpool) Newsgroups: comp.sys.mac.programmer Subject: THINK C class library CPane question Message-ID: <4972@ryn.mro4.dec.com> Date: 25 May 91 21:39:14 GMT Sender: guest@ryn.mro4.dec.com Organization: Digital Equipment Corporation Lines: 26 This is a note from a friend, replies can be sent to me. Hi all, I am writing a program using THINK C's Class Library and I've run into a bit of a stumbling block. I have a window (Pane) defined and I have defined several objects (panes within panes) to be placed in this window in different positions. This all works fine; I can select the object I want to place in the window and place it just fine. The problem is in trying to drag the object somewhere else in the window. I've been trying to work with my overridden version of CMouseTask to do this and I can't seem to get the KeepTracking routine to work correctly. I use a place command in the BeginTracking and EndTracking routines, so when I select an object, it does get selected and repositioned wherever I let the mouse button go. However, 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. Any ideas? Is there something about KeepTracking that I'm not understanding correctly? Any help would be much appreciated. In this subpane I have a bitmap. My ultimate goal to redraw this bitmap as I drag it across my main pane. Tom