2
谁能告诉我为什么第二次在Delphi 7中编译失败?作为TWinControl铸造TWebBrowser
var
WebBrowser: TWebBrowser;
begin
WebBrowser := TWebBrowser.Create(Self);
TWinControl(WebBrowser).Parent := Self;
(WebBrowser as TWinControl).Parent := Self; // fail here
end
家长在TWebBrowser是只读的IDispatch属性,但为什么第一次石膏看到TWinControl parent属性确定,但第二个不?
感谢