Article View: borland.public.jbuilder.java.language
Article #16922Simulating animation (refresh problem)
From: Tom Heagy
Date: Mon, 04 Jan 1999 00:00
Date: Mon, 04 Jan 1999 00:00
18 lines
1384 bytes
1384 bytes
I'm having difficulty with a seemingly simply task. I'm working with a couple of transparent image controls. I wish to move one of them across the other (both are on the same panel) a small amount at a time in order to simulate animation. To be more specific, I have a "game board" that I wish to move a "Game Icon" across, but I only want to move 1 space at a time. I attempted to do it by changing the coordinates of the tranparent image and then delaying a short time before changing the coordinates again. My problem is that the display doesn't refresh until the last move is complete (i.e. I'm out of the loop and control is passed back to the OS). I've played around with "invalidate" and "validate", but with no success. Any/all suggestions would be greatly appreciated. Feel free to e-mail me directly at tom.heagy@mindpsring.com. Thanks in advance!
Technical Details
Message-ID:
<36913A34.40CCCC1E@sciatl.com>Path:
arc1-ca.pugleaf.net!unknown!not-for-mailShow Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: f74b3,55c33f6eaaa49fd2,start X-Google-Attributes: gidf74b3,public From: Tom Heagy <tom.heagy@sciatl.com> Subject: Simulating animation (refresh problem) Date: 1999/01/04 Message-ID: <36913A34.40CCCC1E@sciatl.com> X-Deja-AN: 428781147 Content-Transfer-Encoding: 7bit Organization: Another Netscape Collabra Server User Content-Type: text/plain; charset=us-ascii Mime-Version: 1.0 Newsgroups: borland.public.jbuilder.java.language