---
title: "Inno Setup procedure 的写法举例"
author: "HEXLee"
date: "2013-11-27T10:24:18Z"
tags: []
categories: ["行业应用"]
slug: "inno-setup-procedure"
draft: false
lastmod: "2013-11-27T10:28:06Z"
id: 1981553
url: "https://hexlee.iteye.com/blog/1981553"
---

```
procedure InheritBoundsRect(ASource, ATarget: TControl);
begin
  { This is comment line }
  ATarget.Left := ASource.Left;
  ATarget.Top := ASource.Top;
  ATarget.Width := ASource.Width;
  ATarget.Height := ASource.Height;
end;
```

 

作用： 把Asource的一些属性赋给ATarget