home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #18 / NN_1992_18.iso / spool / comp / sys / amiga / programm / 12447 < prev    next >
Encoding:
Internet Message Format  |  1992-08-18  |  1.5 KB

  1. Path: sparky!uunet!mcsun!Germany.EU.net!unido!open.de!mailbox!teddy!germany!open!ruhr.de!horga!erni.bs.open.de!germal!germal.bs.open.de!gm
  2. From: gm@germal.bs.open.de (Gerald Malitz)
  3. Newsgroups: comp.sys.amiga.programmer
  4. Subject: Dragging
  5. Message-ID: <33Vwr*jT1@germal.bs.open.de>
  6. Date: 17 Aug 92 14:11:47 GMT
  7. Lines: 34
  8. X-Newsreader: Arn V1.00 beta rel2
  9.  
  10.  
  11.     Hi!
  12.  
  13.     I'd like to move objects across my screen, quite similar to
  14. dragging Intuition's icons.  I've tried bobs (overkill?) which work
  15. well - in general.  My problem is somewhat special since there are
  16. lines to fixed points (like rubber bands) moving with my object.
  17. Currently I'm
  18.  
  19.    - drawing lines
  20.     using COMPLEMENT, this erases old lines
  21.    - DrawGList
  22.     somewhere inside it restores old background, saves new background,
  23.     draws object
  24.    - drawing lines
  25.     again using COMPLEMENT, this draws new lines
  26.  
  27. Doing this the lines appear above my objects, which is not what I want.
  28. What needs to be done is
  29.  
  30.    1. restore old background
  31.    2. draw lines (erasing old ones)
  32.    3. draw lines (new ones)
  33.    4. save background
  34.    5. draw object
  35.  
  36. Obviously I can't use DrawGList any longer, because it falls into pieces.
  37. I've tried BltMaskBitMapRastPort and BltBitMap to accomplish 1., 4., and
  38. 5.  At first (not surprisingly) it flickered badly, so I added a WaitTOF().
  39. Nevertheless the results aren't as good as DrawGList.  The movement isn't
  40. as smooth, i.e. my object takes longer steps.  So, what's the magic
  41. inside DrawGList?
  42.  
  43.     aTsHvAaNnKcSe, Gerald.
  44.