Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

Fade In/Out effect on Control?

0 views
Skip to first unread message

Özden Irmak at

unread,
Dec 18, 2005, 1:56:28 PM12/18/05
to
Hello,

I've developed several controls for an applicaiton which is something
similar to PowerPoint...

It has a player where all controls do animate in a way where they show on
their start time and disappear when their timeline are finished. Some of the
controls even contain other controls inside them (Composite controls). I
want to have a fade in/out effect at the beginning of the appearance of the
controls and disappearance of them.

One option in my mind is to manipulate the colormatrix of the drawings of
those controls with a Timer...But as I said there are some composite
controls which makes this difficult and even some composite controls do
contain outer objects such as Flash OCX which is impossible to manipulate
their drawings by me...

I'm trying to find the most effective solution for this and looking for your
suggestions?

Regards,

Özden


Bob Powell [MVP]

unread,
Dec 19, 2005, 5:36:00 AM12/19/05
to
You can use the LayeredWindow API to create fade-in fade-out effects but the
problem is that this only works on top-level windows. AFAIK there is no way
to do this with a child window and because of the way many Windows Forms
child windows are wrappers around Win32 window handles, it's not possible to
affect the drawing of windows using GDI+ constructs such as the ColorMatrix.

You can show and hide child windows using the Visible property. That's about
as good as you'll get I think.

You may need to review the possibilities of your user interface.

--
Bob Powell [MVP]
Visual C#, System.Drawing

Ramuseco Limited .NET consulting
http://www.ramuseco.com

Find great Windows Forms articles in Windows Forms Tips and Tricks
http://www.bobpowell.net/tipstricks.htm

Answer those GDI+ questions with the GDI+ FAQ
http://www.bobpowell.net/faqmain.htm

All new articles provide code in C# and VB.NET.
Subscribe to the RSS feeds provided and never miss a new article.

"Özden Irmak" <ozdenirmak(at)isnet.net.tr> wrote in message
news:uwIqZXAB...@TK2MSFTNGP10.phx.gbl...

Özden Irmak at

unread,
Dec 19, 2005, 7:47:32 AM12/19/05
to
Hello Bob,

Thanks for your valuable time to answer my question...

Your answer also supports that I've to do something manually as this is not
supported by the Os.

I know that I can't manipulate the window drawings but at least I can
manipulate them at drawing state if I draw it by myself, I'll look what I
can do about this.

Thanks again...

Regards,

Özden Irmak

"Bob Powell [MVP]" <bob@_spamkiller_bobpowell.net> wrote in message
news:OyzenfIB...@tk2msftngp13.phx.gbl...

0 new messages