home *** CD-ROM | disk | FTP | other *** search
- 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
- From: gm@germal.bs.open.de (Gerald Malitz)
- Newsgroups: comp.sys.amiga.programmer
- Subject: Dragging
- Message-ID: <33Vwr*jT1@germal.bs.open.de>
- Date: 17 Aug 92 14:11:47 GMT
- Lines: 34
- X-Newsreader: Arn V1.00 beta rel2
-
-
- Hi!
-
- I'd like to move objects across my screen, quite similar to
- dragging Intuition's icons. I've tried bobs (overkill?) which work
- well - in general. My problem is somewhat special since there are
- lines to fixed points (like rubber bands) moving with my object.
- Currently I'm
-
- - drawing lines
- using COMPLEMENT, this erases old lines
- - DrawGList
- somewhere inside it restores old background, saves new background,
- draws object
- - drawing lines
- again using COMPLEMENT, this draws new lines
-
- Doing this the lines appear above my objects, which is not what I want.
- What needs to be done is
-
- 1. restore old background
- 2. draw lines (erasing old ones)
- 3. draw lines (new ones)
- 4. save background
- 5. draw object
-
- Obviously I can't use DrawGList any longer, because it falls into pieces.
- I've tried BltMaskBitMapRastPort and BltBitMap to accomplish 1., 4., and
- 5. At first (not surprisingly) it flickered badly, so I added a WaitTOF().
- Nevertheless the results aren't as good as DrawGList. The movement isn't
- as smooth, i.e. my object takes longer steps. So, what's the magic
- inside DrawGList?
-
- aTsHvAaNnKcSe, Gerald.
-