写控件遇到了麻烦(最简单的)
我准备写一个edit,在他的create事件中我是这样写的:
hintLabel : TLabel;
...
constructor TLabelEdit.Create(AOwner: TComponent);
begin
inherited Create(AOwner);
hintLabel := TLabel.Create(Self);
fCaption := 'Hint:';
hintLabel.Caption := fCaption;
hintLabel.AutoSize := True ;
hintLabel.Visible := True ;
hintLabel.Left := ? //how to write?
hintLabel.Top := ? //how to write?
...
end;
可是我看不到hintlabel阿,怎么回事啊?
我想要hintlabel就在我写的这个edit的左边,该怎么写啊?
*解答一经调试通过,立即给分!!!