Re: Eliminating flick

From: Dr Duck (the.duckman_at_gmail.com)
Date: 09/30/04


Date: 30 Sep 2004 09:46:25 -0700

Fair go mate, I did say "This would need to be done for each
controll.". (and so begins another flame war, lol)

Still Id amit this would bring only limited relif to the problem.

Anyways asside from speeding up the rate at which the parent controll
redraws itself, I think I can recall some _limited_ sucsess with
setting up a don't refresh parent option and manuly refreshing the
parent once the move was complete. Basicly just substituting one
aftifact for another and tring to pick the lesser or two evils.

It was shortly after this that I concluded transparent controls of
this nature were an expensive toy that broke easily and returned to
using more sensible interfaces.

-dm

"Bob Powell [MVP]" <bob@_spamkiller_bobpowell.net> wrote in message news:<#903JLgpEHA.3980@TK2MSFTNGP12.phx.gbl>...
> Eliminating flicker with transparent controls is very difficult, possibly
> even impossible.
>
> Transparent controls can require the parent to paint its own surface before
> they paint their own so some amount of screen change is inevitable. Also
> setting the double buffering in the parent object will not affect the way
> that child objects draw themselves.
>
>
> --
> Bob Powell [MVP]
> Visual C#, System.Drawing
>
> Answer those GDI+ questions with the GDI+ FAQ
> http://www.bobpowell.net/gdiplus_faq.htm
>
> The GDI+ FAQ RSS feed: http://www.bobpowell.net/faqfeed.xml
> Windows Forms Tips and Tricks RSS: http://www.bobpowell.net/tipstricks.xml
> Bob's Blog: http://bobpowelldotnet.blogspot.com/atom.xml
>
>
>
>
>
>
> "Alejandro K." <AleK@AleK.com> wrote in message
> news:Xns956D8D64A8494AleKAleKcom@207.46.248.16...
> > i, i got a form with an image as background , and several transparent
> > controls on it, and i'm suffering of 2 big problems, the first one is that
> > the controls are flicking whenever the form is activated or whenever is
> > Bring to the front again. problem two is that same kind of flick when the
> > some control is moved... any idea or solution of what can it be done to
> > have a flick free application??
> >
> > Thanks.
> > Alex.



Relevant Pages

  • Re: CPropertySheet/Page
    ... data structure Just went back and looked at my ... this common parent. ... where "CParent" stands for whatever your parent window is. ... are snatched out of the controls and stored in these variables, and in an OnSetActive, ...
    (microsoft.public.vc.mfc)
  • Re: Receive multiple events from child controls
    ... >> the number of child controls created. ... >parent, while the user is interacting with the form, ... >If you're getting spurious OnFocus events as you add each ...
    (microsoft.public.dotnet.framework.windowsforms.controls)
  • Re: Reading the .Tag property of a control
    ... Since as Karl pointed out in one of his responses the parent ... Loop through the controls on the form finding the one which has ... therefore read its tag using normal VB code). ... compare that to a list of ids for controls to be ownerdrawn. ...
    (microsoft.public.vb.general.discussion)
  • Re: HOW TO: Parent/Child rows with bound controls?
    ... parent control, which notifies that parent has been changed, and refresh ... > "Val Mazur" wrote: ... >> between the parent DataTable and a child one. ... >>> bound to table A and text controls bound to table B, ...
    (microsoft.public.data.ado)
  • Re: Delphi Movie #17 - Owner vs. Parent
    ... I spent considerable time waging a crusade against a common misconception of the Owner and Parent properties. ... Before you create a follow up to this video, you might want to consider stepping through the VCL destruction code of the form in your sample. ... There you will find a loop that iterates over the Controls array of the form, ... The same loop executes, and what you should see, is the panel calling Destroy on its child button control: ie, a control being deleted by its Parent, not its Owner. ...
    (borland.public.delphi.non-technical)