procedure TForm1.WebBrowser1DocumentComplete(Sender: TObject;
const pDisp: IDispatch; var URL: OleVariant);
beginwith TWebBrowser(Sender) do
if ReadyState >= READYSTATE_LOADED then
OleObject.Document.Body.Scroll:='no';end;procedure TForm1.FormCreate(Sender: TObject);
begin
WebBrowser1.Navigate('www.baidu.com');
end;end.
为什么用上面的 代码,滚动条还在
const pDisp: IDispatch; var URL: OleVariant);
beginwith TWebBrowser(Sender) do
if ReadyState >= READYSTATE_LOADED then
OleObject.Document.Body.Scroll:='no';end;procedure TForm1.FormCreate(Sender: TObject);
begin
WebBrowser1.Navigate('www.baidu.com');
end;end.
为什么用上面的 代码,滚动条还在
解决方案 »
- Indy IdFTP组件的ChangeDir方法不起作用,我哪里弄错了?请高手指教。
- 使用socketconnection连接时怎么使用simpleobjectbroker在程式运行时改变服务器
- ◆◆◆◆ 谁会做动画,帮我整一个动画。◆◆◆◆
- cxgrid中的combobox问题,急!!!
- indy控件idtcpserver/idtcpserver问题
- 怎么用进度条来显示查询过程?
- 关闭端口
- 为什么??关于ADOX.Catalog
- 急!急!急!兄弟们,救命啦!数据库备份!在线等待!在线等待!在线等待!
- 现在开始学delphi,看什么书比较好
- delphi 中 dbgrid 无法显示数据 跪求高人
- 请问TBitmap类的 ScanLine方法有什么作用?
begin
if wb2.ReadyState=3 then wb2.OleObject.document.body.scroll:='no';
end;
const pDisp: IDispatch; var URL: OleVariant);
begin
Application.ProcessMessages;
WEB.OleObject.Document.Body.Scroll := 'no';
WEB.OleObject.Document.Body.style.border := 'none';
WEB.OleObject.Document.Body.Style.margin := '0px';
end;
OleObject.Document.Body.Scroll:='no';if 改成while
if只判断一次然后不会再进入
如果失败自然后面一句不会执行我今天刚用的源码:
procedure TfrmMain.GetLogo ;//都是从网上找来的,不过很好用
begin
tag := 0;
WebBrowser1.Navigate('http://192.168.0.2/testweb/newlogo.jpg');
while(tag=0) do Application.ProcessMessages;
WebBrowser1.oleobject.Document.body.Scroll := 'no';
WebBrowser1.OleObject.Document.Body.style.border := 'none';
webbrowser1.OleObject.Document.Body.Style.margin := '0px';
end;procedure TfrmMain.LoadComplete(Sender: TObject; const pDisp: IDispatch;
var URL: OleVariant);
begin
tag := 1 ;
end;