Autor Beitrag
150gozilla
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starofftopic star
Beiträge: 37

Windows XP Pro
Delphi5 Pro
BeitragVerfasst: Do 27.10.05 10:13 
So hallo, ich habe ein Problem mit dem TWebbrowser.

Ich habe nen TWebBrowser uff der form. Nun starte ich das Programm (per navigate sringt er mir zu ner newsseite). Nun will aber nicht, das man nen link anklicken kann, also schließe ich daraus das man den LINK klick abfangen muss aber wie:

Also hiermit habe ich die scrollbars ausschalten können:
ausblenden Delphi-Quelltext
1:
2:
WebBrowser2.OleObject.Document.Body.Style.OverflowX := 'hidden';
WebBrowser2.OleObject.Document.Body.Style.OverflowY := 'hidden';


Könnt ihr mir helfen,danke

_________________
Lieber locker vom Hocker als hecktisch übern Ecktisch
smiegel
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starhalf ontopic star
Beiträge: 992
Erhaltene Danke: 1

WIN 7
D7 Prof., C#, RAD XE Prof.
BeitragVerfasst: Do 27.10.05 10:36 

_________________
Gruß Smiegel
Ich weiß, daß ich nichts weiß, aber ich weiß mehr als die, die nicht wissen, daß sie nichts wissen. (Sokrates)
150gozilla Threadstarter
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starofftopic star
Beiträge: 37

Windows XP Pro
Delphi5 Pro
BeitragVerfasst: Do 27.10.05 10:37 
user profile iconsmiegel hat folgendes geschrieben:
Hallo,

guckst Du hier: www.entwicklerforum....rOzi2F.7@.1dd04d31/0


na kla guck ich da^^

was soll ich den daraus schließen ?

_________________
Lieber locker vom Hocker als hecktisch übern Ecktisch
Lannes
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starhalf ontopic star
Beiträge: 2352
Erhaltene Danke: 4

Win XP, 95, 3.11, IE6
D3 Prof, D4 Standard, D2005 PE, TurboDelphi, Lazarus, D2010
BeitragVerfasst: Do 27.10.05 10:51 
Hallo,

im Ereignis OnBeforeNavigate des TWebBrowsers eine entsprechende Bedingung stellen. Über die Variable 'URL' kommst Du an die Adresse des angeklickten Links.
ausblenden Delphi-Quelltext
1:
2:
if URL <> 'http://www.delphi-forum.de/' then //alle Url's außer diese
  Cancel := True;                            //werden gecancelt

_________________
MfG Lannes
(Nichts ist nicht Nichts) and ('' <> nil ) and (Pointer('') = nil ) and (@('') <> nil )
150gozilla Threadstarter
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starofftopic star
Beiträge: 37

Windows XP Pro
Delphi5 Pro
BeitragVerfasst: Do 27.10.05 11:09 
Ich danke dir :)

kann man auch den rechtklick unterbinden ?

_________________
Lieber locker vom Hocker als hecktisch übern Ecktisch
Lannes
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starhalf ontopic star
Beiträge: 2352
Erhaltene Danke: 4

Win XP, 95, 3.11, IE6
D3 Prof, D4 Standard, D2005 PE, TurboDelphi, Lazarus, D2010
BeitragVerfasst: Do 27.10.05 11:23 

_________________
MfG Lannes
(Nichts ist nicht Nichts) and ('' <> nil ) and (Pointer('') = nil ) and (@('') <> nil )
150gozilla Threadstarter
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starofftopic star
Beiträge: 37

Windows XP Pro
Delphi5 Pro
BeitragVerfasst: Do 27.10.05 11:26 
Also, wenn ich jetzt mit meinem TWebBrowser auf google serve und rechtklicke, dann so NIX passieren^^



p.S: ICh schaue mir den beitrag mal an

_________________
Lieber locker vom Hocker als hecktisch übern Ecktisch