🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: borland.public.cppbuilder.multimedia
Article #1231

image component flickers during move

#1231
From: Nicholas Gessler
Date: Tue, 07 Aug 2001 15:18
19 lines
1658 bytes
Using the image component, I was trying to make the image glide (float)
across the screen.  So I set up a timer that incrementally moves the top and
left properties of the image.  The timer quits when the image reaches the
screen center (it is disabled).  This all works, but the image flickers as
it passes over other stationary images.  The image is a .bmp and is
transparent.  Can anyone tell me how to program flicker-free movement?  I am
trying, to some extent, to emulate some of the emulation in Flash.

void __fastcall TForm1::TimerGlideTimer(TObject *Sender)
{
   if (x>280) TimerGlide->Enabled=false;
   x=x+5;
   y=y+4;
   Form1->ImageModel->Left=x;
   Form1->ImageModel->Top=y;
}

Thanks for your help,
Nick
Technical Details
Message-ID: <3b70065b_1@dnews>
Path: arc1-ca.pugleaf.net!archiver1.google.com!newsfeed.google.com!sn-xit-02!supernews.com!news.tele.dk!small.news.tele.dk!128.230.129.106!news.maxwell.syr.edu!newsfeed.wirehub.nl!PeerFeed.KWeb.on.ca!dnews

Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit
X-Google-Thread: 10d0fc,6c7e5eb3b70397cc,start
X-Google-Attributes: gid10d0fc,public
X-Google-ArrivalTime: 2001-08-07 08:20:39 PST
Reply-To: "Nicholas Gessler" <gessler@ucla.edu>
From: "Nicholas Gessler" <gessler@ucla.edu>
Newsgroups: borland.public.cppbuilder.multimedia
Subject: image component flickers during move
Date: Tue, 7 Aug 2001 08:18:17 -0700
Lines: 21
Organization: UCLA - Geography
X-Priority: 3
X-MSMail-Priority: Normal
X-Newsreader: Microsoft Outlook Express 5.00.2615.200
X-MIMEOLE: Produced By Microsoft MimeOLE V5.00.2615.200
NNTP-Posting-Host: 4.40.56.105
Message-ID: <3b70065b_1@dnews>
X-Trace: dnews 997197403 4.40.56.105 (7 Aug 2001 08:16:43 -0700)
Path: arc1-ca.pugleaf.net!archiver1.google.com!newsfeed.google.com!sn-xit-02!supernews.com!news.tele.dk!small.news.tele.dk!128.230.129.106!news.maxwell.syr.edu!newsfeed.wirehub.nl!PeerFeed.KWeb.on.ca!dnews