派生对象

通过从已有对象派生新对象,改变对象的部分功能以满足需要。

建立对象代码

1、新建元素,菜单 Component , New Component。

2、Ancestor type 为基对象,如"TEdit"。

3、Class Name 为新对象类名称。

4、Palette Page 为新对象图标显示的控件页。

5、选择 OK 后,输入代码并保存。

注册对象,显示于控件面板

1、菜单 Component , Install Component 。

2、Unit File Name 为新对象的 PAS 文件路径。

3、点击 OK 后,再点击 Compile,完成。

使用对象

因控件面板已有新对象图标,直接拖入窗口即可。

卸载对象

1、菜单“Component”,“Install Component”。

2、Unit File Name 为新对象的 PAS 文件路径。

3、点击 OK 后,再点击 Remove Component ,选需要删除的对象,选 OK。