[lnkForumImage]
TotalShareware - Download Free Software

Confronta i prezzi di migliaia di prodotti.
Asp Forum
 Home | Login | Register | Search 


 

Alejandro K.

9/23/2004 5:54:00 PM

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.
3 Answers

shit.faced

9/25/2004 5:35:00 PM

0

This line added to a form on startup will reduce many flickering
artifacs.

this.SetStyle( ControlStyles.DoubleBuffer |
ControlStyles.AllPaintingInWmPaint | ControlStyles.UserPaint, true );

This would need to be done for each controll. And may not work as I
don''t understand your situation totaly.

Anyway the controlls with an opacity value set (is this what you mean
by transparent) can be a real pain on slow machiens. Iv''e tested them
on 300mhz boxes and was satisfied that large windows with this kinda
option would not scale down well. So I ask what speed box are you
using and how important is it to use opacity.


-DrDuck


"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.

Bob Powell

9/29/2004 9:00:00 AM

0

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/gdipl...

The GDI+ FAQ RSS feed: http://www.bobpowell.net/f...
Windows Forms Tips and Tricks RSS: http://www.bobpowell.net/tips...
Bob''s Blog: http://bobpowelldotnet.blogspot.co...






"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.


the.duckman

9/30/2004 4:46:00 PM

0

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/gdipl...
>
> The GDI+ FAQ RSS feed: http://www.bobpowell.net/f...
> Windows Forms Tips and Tricks RSS: http://www.bobpowell.net/tips...
> Bob''s Blog: http://bobpowelldotnet.blogspot.co...
>
>
>
>
>
>
> "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.