Autor Beitrag
hibbert
ontopic starontopic starontopic starontopic starontopic starontopic starhalf ontopic starofftopic star
Beiträge: 1007

WinServer2003, Win XP, Linux
D6 Pers, D05
BeitragVerfasst: Di 10.05.05 15:27 
Hi,
ich abe ein problem mit dem Scrollen im Webbrowser.

Ich lasse per
ausblenden Delphi-Quelltext
1:
webbrowser1.OleObject.Document.write('<Hallo');					

etwas auf eine html Seite schreiben.

Nun geschiet das in in unregelmäßigen abständen und irgendwann ist das untere Ende der Komponente erreicht.
Dann blenden sich die scrollbars ein und der hinzugefügte Text verschwindet und der user müsste scrollen.

Abhilfe schafft da:
ausblenden Delphi-Quelltext
1:
chat.OleObject.Document.ParentWindow.ScrollBy(0,1000);					


Doch wenn ich jetzt ca. 100 Zeilen eingefügt habe, dann funzt das nicht mehr, also die seite wird nicht mehr bis nach unten gescrollt.

woran kann das liegen ??

thx hibbert

_________________
I kunnen väl svara endast ja eller nej
Om i viljen eller nej
toms
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starhalf ontopic star
Beiträge: 1099
Erhaltene Danke: 2



BeitragVerfasst: Di 10.05.05 15:36 
Hallo,

Schaue dir mein Suche in: Delphi-Forum, Delphi-Library MINI WEBBROWSER DEMO an.
Dort hat's Code zum herunterscrollen, welcher funktioniert.
hibbert Threadstarter
ontopic starontopic starontopic starontopic starontopic starontopic starhalf ontopic starofftopic star
Beiträge: 1007

WinServer2003, Win XP, Linux
D6 Pers, D05
BeitragVerfasst: Di 10.05.05 18:40 
mhh irgendwie finde ich da die
ausblenden Delphi-Quelltext
1:
function GetCurrentWB: TWebbrowser;					

nicht :oops:

hibbert

_________________
I kunnen väl svara endast ja eller nej
Om i viljen eller nej
matze
ontopic starontopic starontopic starontopic starontopic starontopic starhalf ontopic starofftopic star
Beiträge: 4613
Erhaltene Danke: 24

XP home, prof
Delphi 2009 Prof,
BeitragVerfasst: Di 10.05.05 19:08 

_________________
In the beginning was the word.
And the word was content-type: text/plain.
toms
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starhalf ontopic star
Beiträge: 1099
Erhaltene Danke: 2



BeitragVerfasst: Di 10.05.05 19:29 
user profile iconhibbert hat folgendes geschrieben:
mhh irgendwie finde ich da die
ausblenden Delphi-Quelltext
1:
function GetCurrentWB: TWebbrowser;					

nicht :oops:
hibbert


Das brauchst du ja gar nicht!

Nur das:

ausblenden Delphi-Quelltext
1:
Webbrowser1.OleObject.Document.ParentWindow.ScrollTo(0, MaxInt);					
hibbert Threadstarter
ontopic starontopic starontopic starontopic starontopic starontopic starhalf ontopic starofftopic star
Beiträge: 1007

WinServer2003, Win XP, Linux
D6 Pers, D05
BeitragVerfasst: Di 10.05.05 22:33 
user profile icontoms hat folgendes geschrieben:

ausblenden Delphi-Quelltext
1:
Webbrowser1.OleObject.Document.ParentWindow.ScrollTo(0, MaxInt);					


jupp das ist es...

Danke !!

hibbert

_________________
I kunnen väl svara endast ja eller nej
Om i viljen eller nej
sam3st
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starontopic star
Beiträge: 55

Win XP
D7 Enterprise
BeitragVerfasst: Fr 02.12.05 00:38 
Titel: geht nicht
das funktioniert bei mir nicht!!! leider nur ein paar zeilen danach hoppst er immer zu gleichen stelle die dann aber nicht mehr ganz unten ist!!!

hat einer einen rat?