Autor Beitrag
Gagga
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starontopic star
Beiträge: 95

Win 11
Delphi 12 Athen Pro
BeitragVerfasst: So 20.03.22 22:12 
Nabend!

Wie kann ich eine Webseite komplett markieren, die ich in einer Instanz eines TWebBrowser aufgerufen habe? Also so etwas wie WebBrowser1.selectall.

Gruß
Gagga

Moderiert von user profile iconTh69: Delphi-Tags hinzugefügt
jaenicke
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starofftopic star
Beiträge: 19272
Erhaltene Danke: 1740

W11 x64 (Chrome, Edge)
Delphi 11 Pro, Oxygene, C# (VS 2022), JS/HTML, Java (NB), PHP, Lazarus
BeitragVerfasst: So 20.03.22 23:28 
ausblenden Delphi-Quelltext
1:
2:
3:
4:
uses
  MSHTML;

(MyWebBrowser.Document as IHTMLDocument2).ExecCommand('SelectAll', true, null);
Gagga Threadstarter
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starontopic star
Beiträge: 95

Win 11
Delphi 12 Athen Pro
BeitragVerfasst: Mo 21.03.22 23:00 
user profile iconjaenicke hat folgendes geschrieben Zum zitierten Posting springen:
ausblenden Delphi-Quelltext
1:
2:
3:
4:
uses
  MSHTML;

(MyWebBrowser.Document as IHTMLDocument2).ExecCommand('SelectAll', true, null);


Herzlichen Dank!

War mit Extrem-Googeln" nicht zu finden.
jaenicke
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starofftopic star
Beiträge: 19272
Erhaltene Danke: 1740

W11 x64 (Chrome, Edge)
Delphi 11 Pro, Oxygene, C# (VS 2022), JS/HTML, Java (NB), PHP, Lazarus
BeitragVerfasst: Mo 21.03.22 23:16 
user profile iconGagga hat folgendes geschrieben Zum zitierten Posting springen:
War mit Extrem-Googeln" nicht zu finden.
Um ehrlich zu sein habe ich schlicht dein WebBrowser1.selectall markiert, danach gesucht und das erste Ergebnis war die Lösung. ;-)
www.vbforums.com/sho...aste-from-Webbrowser

Moderiert von user profile iconTh69: Delphi-Tags hinzugefügt