Autor Beitrag
Kri
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starhalf ontopic star
Beiträge: 118



BeitragVerfasst: Sa 24.05.08 02:27 
Hallo zusammen,

kann man im Webbrowser die Scrollbars deaktivieren, bzw. verhindern dass gescrollt wird (praktisch die Position locken)?

Ich habe folgenden Code gefunden, welcher leider nicht funktioniert:
ausblenden Delphi-Quelltext
1:
2:
3:
4:
5:
6:
...
with WebBrowser1.OleObject.Document.Body.Style do
  OverflowX := 'hidden';
  OverflowY := 'hidden';
end;
...


Viele liebe Grüße
Kri
Kri Threadstarter
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starhalf ontopic star
Beiträge: 118



BeitragVerfasst: Di 27.05.08 13:04 
Keiner eine Idee?
Kri Threadstarter
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starhalf ontopic star
Beiträge: 118



BeitragVerfasst: Mi 28.05.08 13:29 
Hallo zusammen,

habs, für die, die es interessiert:
ausblenden Delphi-Quelltext
1:
(Webbrowser1.Document as IHTMLDocument2).body.style.overflow := 'hidden';					


Viele liebe Grüße
Kri