Article View: borland.public.cppbuilder.migration
Article #44TImage problem
From: Cherubino Ferrario
Date: Fri, 24 Feb 2006 15:36
Date: Fri, 24 Feb 2006 15:36
25 lines
1809 bytes
1809 bytes
I have a problem with the refresh of the TImage component: with the Builder 5 Professional if I call the Invalidate method of the TImage class, everything is ok. If I compile the same program with the Builder 6, as soon as I call the Invalidate function (or Refresh, or Repaint) the image flashes. The only way to avoid this effect is to put the TImage directly on the form (without using any Panel) and to call theWindows API: RECT Ret; Ret.left=ImageCor->BoundsRect.Left; Ret.top=ImageCor->BoundsRect.Top; Ret.bottom=ImageCor->BoundsRect.Bottom; Ret.right=ImageCor->BoundsRect.Right; InvalidateRect(Handle,&Ret,false); But if I use the canvas of the Bitmap to trace a rectangle, I have again the flashes. Is there any property to set (of the TImage, of the Form or of Panel) or any way to avoid this effect? Thanks for the attention. Cherubino
Technical Details
Message-ID:
<43ff280d@newsgroups.borland.com>Path:
arc1-ca.pugleaf.net!g2news1.google.com!news3.google.com!news4.google.com!border1.nntp.dca.giganews.com!nntp.giganews.com!newsfeed00.sul.t-online.de!newsfeed01.sul.t-online.de!t-online.de!newsgroups.borland.com!not-for-mailShow Full Headers
Complete Article Headers
X-Google-Thread: 110f51,c9f8349e85aeb834,start X-Google-Attributes: gid110f51,public X-Google-Language: ENGLISH,ASCII-7-bit Reply-To: "Cherubino Ferrario" <cherferr@tin.it> From: "Cherubino Ferrario" <cherferr@tin.it> Newsgroups: borland.public.cppbuilder.migration Subject: TImage problem Date: Fri, 24 Feb 2006 16:36:39 +0100 Lines: 27 X-Priority: 3 X-MSMail-Priority: Normal X-Newsreader: Microsoft Outlook Express 6.00.2900.2180 X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2900.2180 X-RFC2646: Format=Flowed; Original NNTP-Posting-Host: 217.56.86.209 Message-ID: <43ff280d@newsgroups.borland.com> X-Trace: newsgroups.borland.com 1140795405 217.56.86.209 (24 Feb 2006 07:36:45 -0700) Path: arc1-ca.pugleaf.net!g2news1.google.com!news3.google.com!news4.google.com!border1.nntp.dca.giganews.com!nntp.giganews.com!newsfeed00.sul.t-online.de!newsfeed01.sul.t-online.de!t-online.de!newsgroups.borland.com!not-for-mail