Autor Beitrag
DiamondDog
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starontopic star
Beiträge: 460



BeitragVerfasst: So 07.12.08 13:54 
Hallo Leute,
ich hab da folgendes Problem und zwar lade ich eine Seite in einem WebBrowser, die Seite passt aber nicht ganz dort rein und deswegen muß ich immer zu einer bestimmten Stelle Scrollen.
Meine Frage dazu ist jetzt, ist es möglich das er WebBrowser die Seite automatisch Scrollt, so das ich das nicht mehr machen muss?

Danke schon mal fürs Helfen.

Mfg Dog
toms
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starhalf ontopic star
Beiträge: 1099
Erhaltene Danke: 2



BeitragVerfasst: Mo 08.12.08 20:35 
DiamondDog Threadstarter
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starontopic star
Beiträge: 460



BeitragVerfasst: Mi 10.12.08 14:27 
Ok sieht schon mal super aus nur was mach ich hier mit:
ausblenden Delphi-Quelltext
1:
2:
3:
4:
5:
6:
var
  document: IHTMLDocument2;
  begin
    document := webBrowser.Document as IHTMLDocument2;
    if Assigned(document) then
      document.parentWindow.scrollBy(iX,iY);
bzw wo muß ich das einfügen?
toms
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starhalf ontopic star
Beiträge: 1099
Erhaltene Danke: 2



BeitragVerfasst: Fr 12.12.08 07:05 
Im OnDocumentComplete.
DiamondDog Threadstarter
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starontopic star
Beiträge: 460



BeitragVerfasst: Fr 12.12.08 18:17 
Ahhh ok Thx.
toms
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starhalf ontopic star
Beiträge: 1099
Erhaltene Danke: 2



BeitragVerfasst: Fr 12.12.08 19:26 
Einfach noch beachten, dass OnDocumentComplete bei einer Seite mit mehreren Frames mehrfach ausgelöst werden kann