xFrom.Left := (xFrom.Right - (xFrom.Right - xFrom.Left) Div 2);
xFrom.Right := xFrom.Left + 1;
GetWindowRect(Frm.Handle, xTo);
DrawAnimatedRects(Frm.Handle, IDANI_OPEN Or IDANI_CAPTION, xFrom, xTo);
End;
ZoomFormClosed:
Begin
GetWindowRect(Frm.Handle, xFrom);
GetWindowRect(TrayWnd, xTo);
xTo.Left := (xTo.Right - (xto.Right - xTo.Left) Div 2);
xTo.Right := xTo.Left + 1;
DrawAnimatedRects(Frm.Handle, IDANI_CLOSE Or IDANI_CAPTION, xFrom, xTo);
End;
End;
End;
procedure TFormMain.TrayIcon1DblClick(Sender: TObject);
begin
TrayIcon1.Active := False;
FrmZoomToTray(FormMain,ZoomFormopen);
FormMain.Show;
end;
End.