我创建了一个继承自TCustomControl的自定义控件,并发布了属性Align of TControl.但是,当我在C Builder项目中使用此自定义控件时,它引发了异常
Project Launcher.exe引发异常类EReadError,并显示消息“属性对齐不存在”.
unit GameListCtrl; interface uses SysUtils,Classes,Controls; type TGameList = class(TCustomControl) private protected procedure Paint; override; public { Public declarations } published property Align default alLeft; end; implementation { TGameList } procedure TGameList.Paint; begin inherited; end; end.