BorlandTalk.com Forum Index BorlandTalk.com
Borland discussion newsgroups
 
Archives   FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

TImages Flicker

 
Post new topic   Reply to topic    BorlandTalk.com Forum Index -> C++ Builder (Graphics)
View previous topic :: View next topic  
Author Message
Roger
Guest





PostPosted: Mon Sep 04, 2006 8:08 pm    Post subject: TImages Flicker Reply with 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.

Any guidance as to what to look for, or check, would be welcome.

Thanks,
Roger
Back to top
JD
Guest





PostPosted: Tue Sep 05, 2006 8:10 am    Post subject: Re: TImages Flicker Reply with quote



"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





PostPosted: Tue Sep 05, 2006 3:03 pm    Post subject: Re: TImages Flicker Reply with quote



I found that using

ControlStyle << csOpaque;

on the form fixes my problem.
Back to top
Vladimir Stefanovic
Guest





PostPosted: Tue Sep 05, 2006 8:07 pm    Post subject: Re: TImages Flicker Reply with quote

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





PostPosted: Tue Sep 05, 2006 8:59 pm    Post subject: Re: TImages Flicker Reply with quote

Thanks Vladimir I will keep that in mind but for now

ControlStyle << csOpaque;

seems to work well.

Thanks,
Roger
Back to top
Display posts from previous:   
Post new topic   Reply to topic    BorlandTalk.com Forum Index -> C++ Builder (Graphics) All times are GMT
Page 1 of 1

 
Jump to:  
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


Powered by phpBB © 2001, 2006 phpBB Group
SEO toolkit © 2004-2006 webmedic.