procedure AlternativeFadeIn(aForm: TForm; max: Integer);
var
i: Integer;
begin
sSkinManager1.AnimEffects.FormShow.Time := 0;
If max > 255 then
max := 255;
aForm.AlphaBlendValue := 1;
aForm.AlphaBlend := true;
aForm.Visible := true;
SetWindowPos(aForm.Handle, HWND_TOP,0,0,0,0, SWP_NOACTIVATE or SWP_NOMOVE or SWP_NOSIZE);
UpdateWindow(aForm.Handle);
//RedrawWindow(aForm.Handle, nil, 0, RDW_INVALIDATE or RDW_ALLCHILDREN or RDW_FRAME or RDW_ERASE or RDW_UPDATENOW);
aForm.Update; // AlphaControls needs this
for i := 1 to 50 do
if max > aForm.AlphaBlendValue – 5 then
begin
aForm.AlphaBlendValue := round(i*5.1);
sleep(4);
end
else break;
aForm.AlphaBlendValue := max;
//RedrawWindow(aForm.Handle, nil, 0, RDW_INVALIDATE or RDW_ALLCHILDREN or RDW_FRAME or RDW_ERASE or RDW_UPDATENOW);
end;