Newsgroups : Borland : borland.public.delphi.nativeapi.win32 : 2006 Oct : Fading

www.cryer.info
Managed Newsgroup Archive

Fading

Subject:Fading
Posted by:"Tom Peters" (tom_vip..@msn.com)
Date:Fri, 6 Oct 2006 02:28:23

Looking for code to fade a form in, quickly and smoothly.  I was going to
use a simple loop and SetLayeredWindowAttributes().  But, I use D2005.  So,
I decided to simply use the forms AlphaBlendValue.  It works, but it's not
smooth looking,

  for i := fmMain.AlphaBlendValue to 175 do
   begin
    fmMain.AlphaBlendValue := i;
   end;

A good example of what I'm after would be the fade effect you get activating
the dashboard, on a Mac system.

Replies:

www.cryer.info
Managed Newsgroup Archive