Анимация форм при сворачивании и разворачивании

{codecitation class=»brush: pascal; gutter: false;» width=»600px»}

Оформил: DeeCo

Автор: http://www.swissdelphicenter.ch

{

In Win9X or NT4, there’s a ‘zooming effect’ when an application is minimized

to the taskbar or restored from the taskbar.

Delphi applications don’t have this zooming effect.

You can switch the effect on or off with the following piece of code:

}

Info: TAnimationInfo;

begin

ZeroMemory(@Info,SizeOf(Info));

Info.cbSize := SizeOf(TAnimationInfo);

BOOL(Info.iMinAnimate) := Value;

SystemParametersInfo(SPI_SETANIMATION, SizeOf(Info), @Info, 0);

end;

procedure TForm1.Button1Click(Sender: TObject);

begin

SetAnimation(True);

end;

{/codecitation}

Добавить комментарий