Questions tagged [twebbrowser]

TWebBrowser is a VCL component available in the Delphi Internet tool-palette. It is defined in the `SHDocVw.pas` unit. It provides access to the Web browser functionality of Microsoft's Shell Doc Object and Control Library.

476 questions
5
votes
1 answer

How can I add an extra http header using IHTTPNegotiate?

How can I add an extra header to the request using IHTTPNegotiate? I added the interface but functions BeginningTransaction & OnResponse never get called. TNameSpaceHandler = class(TComObject, IInternetProtocol, IHttpNegotiate) ... function…
user1647411
5
votes
1 answer

Using Tidhttp with Twebbrowser

I am using the tidhttp control to speed up the loading of a webpage in a Twebbrowser. Navigating to the url is slow so thats why I don't use it(WebBrowser1.Navigate('some_url_here')). Here is how i do it: procedure TForm1.Button2Click(Sender:…
megatr0n
  • 362
  • 4
  • 18
5
votes
3 answers

Delphi Twebbrowser change value of textbox.

I'm have some difficulty changing the value of a textbox in twebbrowser. I have tried WebBrowser1.OleObject.Document.getElementById('verification_control_0').value := 'mytext'; and a few other methods but it doesn't seem to work. The websites…
rookie Bounty
  • 127
  • 1
  • 2
  • 7
5
votes
1 answer

TCppWebBrowser vs TWebBrowser

What is the difference between TCppWebBrowser and TWebBrowser components in C++Builder 2010 and above? There is no mention of TCppWebBrowser in the help, where TWebBrowser has regular help section. So, which one should I use and is there any real…
riot_starter
  • 1,218
  • 15
  • 28
5
votes
2 answers

Optimize painting of TWebBrowser to reduce total CPU usage

I have a form that has a TWebBrower component that loads an HTML document. The data on the HTML document is updated every few seconds, sometimes multiple times every second and I update the value in Delphi…
Wilbert Chua
  • 101
  • 1
  • 5
4
votes
1 answer

TWebBrowser how set caret position to end of INPUT(text) field on IE8

I have an application that loads a webpage via TWebBrowser and on this page I have some HTML inputs. What I want is to change the value of an input and set the caret position to the end. This is what I have at the moment: procedure…
whosrdaddy
  • 11,720
  • 4
  • 50
  • 99
4
votes
1 answer

TEventObject and WebBrowser

I created a TEventObject to provide OnMouseDown and OnMouseMove events for TWebBrowser. The events work perfectly when moving the mouse and when clicking in the webbrowser, but when I scroll or click the webbrowser's vertical scrollbar a…
Bill
  • 2,993
  • 5
  • 37
  • 71
4
votes
1 answer

How do I redirect the TWebBrowser control to a custom URL?

Example: I navigate to http://www.stackoverflow.com with my web browser control there's a link to FAQ in the top bar, with target https://stackoverflow.com/faq I need to redirect e.g. to the http://math.stackexchange.com when I click the FAQ link
TLama
  • 75,147
  • 17
  • 214
  • 392
4
votes
1 answer

How can I overcome memory leak in accessing TWebBrowser.Document in Delphi 10.3.3

I'm using this code from StackOverflow (How can I get HTML source code from TWebBrowser) to get the full response from a webpage: function TMain.GetWebBrowserHTML(const WebBrowser: TWebBrowser): String; var LStream: TStringStream; Stream:…
4
votes
1 answer

View Web Console When Using TWebBrowser

I am using a TWebBrowser to display a web page that is created in Vue, but I currently have no way to debug situations where functionality of the page works in a browser (IE and Chrome) but does not work from the TWebBrowser. I am looking for a way…
4
votes
1 answer

How to get custom event parameters in a TWebBrowser IDispatchEvent

I was attempting to create some kind of two way communication between Javascript and my TWebBrowser. In my first iteration I was able to register property change events so that when a tag changes, Delphi picks up the change and then reads the value…
Matt
  • 151
  • 1
  • 5
4
votes
1 answer

TWebBrowser without parent window

I am trying to use TWebBrowser in Console/Service type of application (without any windows). Navigate is definitely doing something, but it never calls onDocumentComplete. Is there any other way to get access to IHTMLDocument2 of some URL? Thank…
Nipp
  • 103
  • 6
4
votes
4 answers

How to release memory used by IHTMLDocument?

is there a way to release memory after using IHTMLDocument (IHTMLDocument2) ? Currently I'm using EmptyWorkingSet function but I feel that it's not a good way to do it EmptyWorkingSet(GetCurrentProcess); Even freeing the TWebBrowser doesn't help;…
user532231
4
votes
2 answers

Enabling TWebBrowser High DPI support

I am using RAD Studio Rio which has support for High DPI. But it doesn't seem to work on TWebBrowser, at least not by default like it does on other VCL components. So when I drag the app from Low-DPI to High-DPI monitor, the user interface and all…
Coder12345
  • 3,431
  • 3
  • 33
  • 73
1 2
3
31 32