home *** CD-ROM | disk | FTP | other *** search
- Newsgroups: comp.sys.mac.programmer
- Path: sparky!uunet!pageworks.com!world!eff!news.byu.edu!gatech!asuvax!ncar!csn!qwerty-gw.fsl.noaa.gov!yoda.fsl.noaa.gov!urban
- From: urban@yoda.fsl.noaa.gov (Art Urban)
- Subject: TCL: Bit Off More Than I Can Chew...
- Message-ID: <1993Jan26.191352.25596@fsl.noaa.gov>
- Sender: urban@fsl.noaa.gov
- Organization: Forecast Systems Lab, NOAA, Boulder CO, USA
- Date: Tue, 26 Jan 1993 19:13:52 GMT
- Lines: 36
-
- Up until recently, I was very pleased with my DragOutlineTask object. I had
- successfully called DragGrayRgn() in the KeepTracking() method, and went
- about my business. But then I thought, I want this to AutoScroll() should I
- need it to. Okay, so I hunkered down and wrote a sly little dragHook
- actionProc which in turn called a DoWhileDragging() method of
- DragOutlineTask (I didn't even think this would work, but it does. I
- defined my *own* this pointer, and lo and behold, it correctly pointed to
- the current object! This is almost scary...)
-
- So, back in DoWhileDragging() method, I get the current mouse location and
- massage it to work with AutoScroll(). The strange thing is, the scrolling
- does take place, but now drawing is occuring all over the grafPort, and I
- suspect it has something to do with AutoScroll changing the Origin while
- DragGrayRgn() is trying to do its work, but I really don't know.
-
- I couldn't help notice that CMouseTask is set up to repeatedly receive
- KeepTraking() calls. So to really pull off AutoScroll() it seems that I
- need to do it here, not via the dragHook proc. But since, DragGrayRgn()
- won't release events until the mouse is up, I can't usefully call
- AutoScroll() with the current mouseLoc.
-
- So my quandry is this: Should I try to fix the implementation which uses
- the call to DragGrayRgn() (and how do I do this?), or should I try to write
- my own region dragging code so I can benefit from the utility of the
- KeepTracking() method?
-
- Now it seems to me, that somebody has probably done one or the other
- already. So, if you have code you can share, I'd appreciate it. I really
- don't want' to get into GWorlds at this point in my learning curve...
-
- Thanx!!!
- --
- Art Urban urban@yoda.fsl.noaa.gov
- ===============================================================================
- "Look, he's being attacked by creamy nugget centers." -Joel
- ===============================================================================
-