[Android]TWebBrowser

This is the forum for miscellaneous technical/programming questions.

Moderator: 2ffat

[Android]TWebBrowser

Postby Lena » Wed May 03, 2017 12:57 am

Hi.
I click the button to open the form with TWebBrowser:
Code: Select all
FormWEB = new TFormWEB(this);                       
FormWEB->WebBrowser1->Navigate(L"http://bcbj.org/");
FormWEB->Show();

I see the word "Download" in the label, and when the page is loaded the label becomes empty. It's okay.
If already in the open page in the TWebBrowser window there is a hyperlink and click on it, then the word "Download" is not already seen in the label.
How to click on the link in the TWebBrowser, to show in the label the "Download" word?
Code: Select all
void __fastcall TFormWEB::WebBrowser1DidFinishLoad(TObject *ASender)
{
 Label1->Text = L"";
}
//---------------------------------------------------------------------------
void __fastcall TFormWEB::FormShow(TObject *Sender)
{
 Label1->Text = L"Download...";
}
//---------------------------------------------------------------------------
void __fastcall TFormWEB::WebBrowser1DidStartLoad(TObject *ASender)
{
 Label1->Text = L"Download...";
}
Lena
BCBJ Master
BCBJ Master
 
Posts: 525
Joined: Sun Feb 06, 2011 1:28 pm

Re: [Android]TWebBrowser

Postby rlebeau » Wed May 03, 2017 1:46 pm

Lena wrote:If already in the open page in the TWebBrowser window there is a hyperlink and click on it, then the word "Download" is not already seen in the label.


Are you saying that clicking on a hyperlink is NOT triggering the OnDidStartLoad event? It should be. If it is not, file a bug report with Embarcadero.
Remy Lebeau (TeamB)
Lebeau Software
User avatar
rlebeau
BCBJ Author
BCBJ Author
 
Posts: 1457
Joined: Wed Jun 01, 2005 3:21 am
Location: California, USA

Re: [Android]TWebBrowser

Postby Lena » Wed May 03, 2017 11:27 pm

a bug report with Embarcadero


Thank You!
RSP-18035
Lena
BCBJ Master
BCBJ Master
 
Posts: 525
Joined: Sun Feb 06, 2011 1:28 pm


Return to Technical

Who is online

Users browsing this forum: No registered users and 22 guests