home *** CD-ROM | disk | FTP | other *** search
- Newsgroups: comp.sys.mac.programmer
- Path: sparky!uunet!ferkel.ucsb.edu!taco!gatech!purdue!yuma!csn!qwerty-gw.fsl.noaa.gov!yoda.fsl.noaa.gov!urban
- From: urban@yoda.fsl.noaa.gov (Art Urban)
- Subject: Code Samples?
- Message-ID: <1993Jan27.162850.27345@fsl.noaa.gov>
- Sender: urban@fsl.noaa.gov
- Organization: Forecast Systems Lab, NOAA, Boulder CO, USA
- Date: Wed, 27 Jan 1993 16:28:50 GMT
- Lines: 28
-
- Ignoring for the moment, fliker-free dragging "animation", I was wondering
- if somebody could post a code example of the typical steps for visually
- moving/dragging objects around in a window.
-
- For example, is this close?
-
- Erase old location
- Offset to new location
- Union the two locations
- Erase union
- Draw new location
-
- I would actually prefer source code over pseudocode, as I would like to see
- the actual calls required. And, if it matters, I will be implementing this
- in TCL, but I can read Pascal just fine if that's all you have.
-
- If you *want* to include GWorld calls and such for fliker-free dragging,
- please feel free, as I will eventually desire this. This will also show me
- what portions of the window are commonly used in CopyBits, i.e., just the
- update rect, or the whole portRect.
-
- Thanx!
-
- --
- Art Urban urban@yoda.fsl.noaa.gov
- ===============================================================================
- "Look, he's being attacked by creamy nugget centers." -Joel
- ===============================================================================
-