home *** CD-ROM | disk | FTP | other *** search
- Newsgroups: comp.sys.mac.programmer
- Path: sparky!uunet!gatech!darwin.sura.net!convex!news.utdallas.edu!corpgate!bnrgate!nrcnet0!cunews!torn!csd.unb.ca!morgan.ucs.mun.ca!nstn.ns.ca!dragon.acadiau.ca!881571s
- From: 881571s@dragon.acadiau.ca (Arnold Spence)
- Subject: MacApp(Think Pascal) DoIdle question.
- Message-ID: <1992Sep1.174835.27573@dragon.acadiau.ca>
- Organization: Acadia University
- Date: Tue, 1 Sep 1992 17:48:35 GMT
- Lines: 20
-
- I am using MacApp 2.0 with Think Pascal 4.0. I am working on a program to
- move pict resources around in a window. I tried using TPicture and managed to
- get one picture moving around but I would like to have more than one. When I
- create the view layout with view edit I can only specify one pict as the
- target and therefore only one receives its DoIdle method. Is there and easy
- way to get all of them to receive DoIdle? Another way to do it I figure is to
- use the windows list of picture objects and send them their move methods
- directly. This is giving me problems however because I can't seem to get
- TList.Each to work. (basically I don't know how to call it, can anyone give
- me an example of the syntax required to use it?). Also I find that when I
- used DoIdle to animate one picture it didn't move very fast (I have a MacIIfx).
- Would there be a better way to implement a procedure that needs to be called
- as frequently as possible? The animation stopped noticably following a keypress
- or mouse click and sometimes because of some unseen system activity. If anyone
- is experienced in this type of programming please let me know if I'm on the
- right track. Thank you for your time...
-
- if end_of_message then
- writeln('Arnold B. Spence : arnold.spence@dragon.acadiau.ca');
-
-