 |
BorlandTalk.com Borland discussion newsgroups
|
| View previous topic :: View next topic |
| Author |
Message |
Roger Guest
|
Posted: Mon Sep 04, 2006 8:08 pm Post subject: TImages Flicker |
|
|
I have several TImages, one with a graph with edge-to-edge crosshair cursors
and others with graph labels. Some of the labels are no problem
but others cause flicker on the graph and some of the labels that are being
updated. If I place one of the problem labels to the left of the graph
it won't cause flicker when written to, however, if I put it above, below,
or to the right of the graph I get flicker.
Any guidance as to what to look for, or check, would be welcome.
Thanks,
Roger |
|
| Back to top |
|
 |
JD Guest
|
Posted: Tue Sep 05, 2006 8:10 am Post subject: Re: TImages Flicker |
|
|
"Roger" <aretae (AT) magma (DOT) ca> wrote:
| Quote: |
[...] Any guidance as to what to look for, or check, would
be welcome.
|
Sounds like a WM_PAINT issue. You need to reduce the code to
the absolute minimum that demonmstrates the problem and post
it.
~ JD |
|
| Back to top |
|
 |
Roger Guest
|
Posted: Tue Sep 05, 2006 3:03 pm Post subject: Re: TImages Flicker |
|
|
I found that using
ControlStyle << csOpaque;
on the form fixes my problem. |
|
| Back to top |
|
 |
Vladimir Stefanovic Guest
|
Posted: Tue Sep 05, 2006 8:07 pm Post subject: Re: TImages Flicker |
|
|
| Quote: | I have several TImages, one with a graph with edge-to-edge crosshair
cursors and others with graph labels. Some of the labels are no problem
but others cause flicker on the graph and some of the labels that are
being updated. If I place one of the problem labels to the left of the
graph
it won't cause flicker when written to, however, if I put it above, below,
or to the right of the graph I get flicker.
|
Try this:
// TYourForm is a form where your TImages are placed
__fastcall TYourForm::TYourForm(TComponent* Owner)
: TForm(Owner)
{
// ...
DoubleBuffered = true;
// ...
}
--
Best Regards,
Vladimir Stefanovic |
|
| Back to top |
|
 |
Roger Guest
|
Posted: Tue Sep 05, 2006 8:59 pm Post subject: Re: TImages Flicker |
|
|
Thanks Vladimir I will keep that in mind but for now
ControlStyle << csOpaque;
seems to work well.
Thanks,
Roger |
|
| Back to top |
|
 |
|
|
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum
|
|