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
3
votes
2 answers

Pressing Alt clears the embedded TWebBrowser

I have TWebBrowser embedded in a TForm. Whenever I press Alt button the browser window becomes white. If I drag the form around it repaints correctly. What I am doing wrong? I have DevExpress Bars and Quantum Grid if that matters? I use Delphi 2010…
Gad D Lord
  • 6,620
  • 12
  • 60
  • 106
3
votes
1 answer

Geo Location not accessible from a webpage on Android when using browser embedded in an app

I am using navigator.geolocation.getCurrentPosition() to get user's current location. The location feature on these web pages works fine when loaded directly into a web browser on both iOS and Android. User gets asked if they allow access to…
jaadooviewer
  • 368
  • 1
  • 10
3
votes
4 answers

Is TWebBrowser dependant on IE version?

I am thinking about using the TWebBrowser component that comes within Delphi's default pallet of components in a project, but I wonder if it uses the IE version installed on the client machine? If yes: then I guess it would share its history,…
Jonathan
  • 4,724
  • 7
  • 45
  • 65
3
votes
1 answer

How to send arrow keys to Adobe Flash Player inside a Delphi TWebBrowser control?

I am using a TWebBrowser control inside a Delphi Pro 6 form (TForm) to view a YouTube video on YouTube's "leanback" interface page. I want to send arrow keys to the Flash Player that is playing the video but I can't seem to get it to work. I've…
Robert Oschler
  • 14,153
  • 18
  • 94
  • 227
3
votes
0 answers

TWebBrowser doesn't display my website

I want to load my web project into my delphi app, using the component TWebBrowser. My project bases on angular tree grid and works on all browsers including IE. When I loaded the web project into Delphi XE8 project and ran the app, suddenly some…
Peter
  • 1,589
  • 2
  • 20
  • 27
3
votes
1 answer

Access violation on shutdown from hidden TWebBrowser

Scenario: A TPageControl with two TTabSheets A TWebBrowser on the non-visible tab sheet WebBrowser->Navigate called during form creation If the user simply runs the form and exits, then during application shutdown, an access violation is…
Josh Kelley
  • 56,064
  • 19
  • 146
  • 246
3
votes
1 answer

Detect cursor position in TWebBrowser at edit mode

I get selection range like this: var Range: IHTMLTxtRange; begin if Supports((Document as IHTMLDocument2).selection.createRange, IHTMLTxtRange, Range) end; TWebBrowser in editing. I need get position of cursor. How I can get its?
Semyon.Khmelev
  • 197
  • 1
  • 14
3
votes
1 answer

How to make TWebBrowser ignore accelerator chars of others controls?

I have a TWebBrowser placed on a form with the designMode enabled. Bellow the browser I have a close button with the Caption set to 'Clos&e'. When I am editing the contents of a document inside the WebBrowser and I press the key E the button close…
Douglas Lise
  • 1,466
  • 1
  • 20
  • 46
3
votes
2 answers

Firemonkey Delphi TWebBrowser Get Text / HTML

How can i get text / html from a webpage on Firemonkey platform (Android/iOS). TWebBrowser Doesn't have anything for this...
user3376405
  • 31
  • 1
  • 2
3
votes
1 answer

Delphi - Certificate error in TWebBrowser, no error in IE9

Few years ago I wrote a Delphi app which opens an intranet site in TWebBrowser. The app works fine on Windows XP SP3, but on Windows 7, TWebBrowser shows the IE8-style red certificate error page. Moreover, clicking on "Continue to this website"…
kol
  • 27,881
  • 12
  • 83
  • 120
3
votes
1 answer

Save specific image in Delphi's TWebbrowser?

I need to save an specific image in Twebbrowser, but WITHOUT reloading it ; the image is already loaded. I know how to get the source url of the image and download it, but what i really need is to save the image it's already loaded in the browser.…
delphirules
  • 6,443
  • 17
  • 59
  • 108
3
votes
0 answers

EmbeddedWB inserting HTML at cursor position

I use TEmbeddedWB and TEditDesigner to add HTML to page which is in edit mode. It is as simple as EditDesigner->InsertHTML("1234");. The problem is because the HTML is not always inserted at the cursor position. If I place this code on a button it…
Coder12345
  • 3,431
  • 3
  • 33
  • 73
3
votes
1 answer

IHTMLStyleSheetRulesCollection for style tags (inline styles)

I use IHTMLDocument2 interface to retrieve IHTMLStyleSheetRulesCollection using the IHTMLDocument2::styleSheets property. It works fine for retrieving styles within