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
4
votes
6 answers

Delphi TWebBrowser Memory Leak

My application uses a TWebBrowser that loads a webpage. The problem is, after closing the form containing the TWebBrowser, the memory used is not freed. If I open and close the form, the memory just keeps on increasing. Saw some post regarding…
Wilbert Chua
  • 101
  • 1
  • 5
3
votes
3 answers

How to detect Print command has finished in TWebBrowser?

procedure TForm1.Button1Click(Sender: TObject); var vaIn, vaOut: OleVariant; begin WebBrowser1.Navigate('http://www.google.com'); while WebBrowser1.ReadyState < READYSTATE_COMPLETE do Application.ProcessMessages; …
kobik
  • 21,001
  • 4
  • 61
  • 121
3
votes
0 answers

Printing from TEdgeBrowser in Delphi

Is there a way to print from the TEdgeBrowser implementation in Delphi? In the older TWebBrowser we used the following code that worked: ControlInterface.ExecWB(OLECMDID_PRINT, OLECMDEXECOPT_DONTPROMPTUSER, varIn, varOut); But the TEdgeBrowser…
Julian
  • 41
  • 2
3
votes
1 answer

How to disable TWebBrowser context menu?

I have a frame which contains a TWebBrowser component and is used by some of my applications and I need to disable the TWebBrowser's default popup menu. I found a solution which works at the application level, by using a TApplicationEvents…
Fabrizio
  • 7,603
  • 6
  • 44
  • 104
3
votes
1 answer

Open new pages also in TWebBrowser

I have created an app with a twebBrowser in it. Problem is when i click on some link, in say gmail, it opens in a new window of my default browser( which is IE). how do i make it work like firefox or chrome etc. which opens the clicked links in…
CyprUS
  • 4,159
  • 9
  • 48
  • 93
3
votes
2 answers

TWebBrowser and FEATURE_BROWSER_EMULATION at runtime

Has anyone tried creating and destroying a TWebBrowser at runtime and using FEATURE_BROWSER_EMULATION to switch the browser mode before re-creating the TWebBrowser to enable switching the mode without restarting the application? I'm wondering if the…
MikeD
  • 627
  • 6
  • 10
3
votes
3 answers

Application locks while trying to access TWebbrowsers HTML

Edit Narrowed it down to this 1 line, HTML := wb.OleObject.Document.documentElement.innerHTML; which consumes the time... how can that be speed up? Using the following code my application can hang for 1-2 seconds while it tries to access the HTML…
Wizzard
  • 12,582
  • 22
  • 68
  • 101
3
votes
1 answer

Delphi TWebBrowser does not respond to clicking on file hyperlinks

I have TWebBrowser component (Delphi 7), and I loaded HTML from memory stream. The HTML code of the page loaded fine, the page is displayed correctly. But when I try to click on any hyperlink with addresses (href attribute value) like…
GreyWolf
  • 39
  • 5
3
votes
1 answer

Send and receive data to and from a website using the TWebbrowser component in Delphi

I'm creating a VCL Application with Delpi 10.3 and want to support some web functionality by having the user enter the ISBN of a book into a TEdit component and from there passing/sending this value to a search field on this website:…
Janrich
  • 55
  • 1
  • 6
3
votes
1 answer

Accessing images displayed by TWebBrowser but not contained in its Images collection

The web page here cropped up in another question here about retrieving imags from a spreadsheet. If you navigate to the page in FF you'll see that there are two images, at the LHS of the blue header strips. However, if I load the page into a…
MartynA
  • 30,454
  • 4
  • 32
  • 73
3
votes
0 answers

Virtual keyboard overlaps a WebBrowser component

I'm using Embarcadero RAD Studio 10.2.2. I have a TWebBrowser component in my FireMonkey multi-device application, and it works fine. However, I would like for my application to reshape itself so that the virtual keyboard does not overlap the edit…
3
votes
1 answer

Delphi and FireMonkey WebBrowser Callback using file://

I am using 10.2.2 Tokyo Enterprise and FireMonkey's TWebBrowser in an App. I wish to receive a callback response, but I don't receive a URL back when the ShouldStartLoadWithRequest fires when I run my code. I would like to know if this is possible…
user9234656
3
votes
1 answer

Delphi TWebBrowser window.devicePixelRatio property

in our app we use the TWebBrowser component of Delphi to display web content. Now we have a problem if windows has scaled monitors, for example 125% scale. In this case some HTML-controls aren't rendert correctly, because the window.devicePixelRatio…
Sumafu
  • 179
  • 1
  • 3
  • 15
3
votes
1 answer

Move Flash Player in a Delphi TWebBrowser control to a background thread?

I have a Delphi 6 Pro program with a TWebBrowser component that loads a web page that embeds a Cool Iris Wall. The Cool Iris wall is an SWF object which means that when running, the execution happens inside the Adobe Flash player, an ActiveX or…
Robert Oschler
  • 14,153
  • 18
  • 94
  • 227
3
votes
1 answer

Updated TWebBrowser now implements IDocUIHandler from the start, how can I keep using my custom implementation?

Beginning with Delphi 10.0 Seattle, Embarcadero has changed the implementation of the TWebBrowser control: Pre-Seattle: TWebBrowser = class(TOleControl) Seattle+: TWebBrowser = class(TOleControl, IDocHostUIHandler, IDocHostShowUI,…
nelshh
  • 1,021
  • 1
  • 11
  • 15