home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1993 #3 / NN_1993_3.iso / spool / comp / sys / mac / programm / 22346 < prev    next >
Encoding:
Text File  |  1993-01-28  |  1.4 KB  |  39 lines

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