- This topic has 37 replies, 5 voices, and was last updated 9 years, 6 months ago by
arabelaalborn.
-
AuthorPosts
-
July 8, 2015 at 9:57 pm #53622
HeDiBo
Participant'minou' wrote:Execute code When Page (Google Maps) Has Fully Loaded but this does not happen
Thank you :a3:, I'm sure Serge will answer this.
July 10, 2015 at 8:21 pm #53641Support
KeymasterHello, Minou
I'm trying to repeat your problem, but can't. This event is working in my test-app.
Can you show a demo, please?
July 21, 2015 at 6:33 pm #53699HeDiBo
ParticipantSend us a complete project (dproj and all), that compiles without errors, packed in a ZIP file, if you really want answers.
July 21, 2015 at 8:32 pm #53702minou
Participant'HeDiBo' wrote:Send us a complete project (dproj and all), that compiles without errors, packed in a ZIP file, if you really want answers.
thank you
anyway it is work now my be problem in ie or ac
July 22, 2015 at 11:31 am #53696HeDiBo
Participant'minou' wrote:thank you
anyway it is work now my be problem in ie or ac
For your information, your test program worked fine with me too.
Best of luck to you 🙄
August 23, 2015 at 1:51 pm #53883HeDiBo
ParticipantJM-DG apparently posted a message, that was later removed? The message went:
Quote:There is indeed a weird bug with TsWebBrowser in Delphi 7 at least.Assign any of these actions in TsWebBrowser
OnBeforeNavigate2
OnCommandStateChange
OnDocumentComplete
OnNavigateComplete2
// Put a comment so that delphi does'nt remove them.
– Save All.
– Close the project.
– Reopen the project and the actions won't be linked anymore.
I can confirm this serious bug using Delphi XE4.
I tried the same thing with TWebbrowser and no problem there. So it must be somewhere in TsWebBrowser.
August 28, 2015 at 7:40 am #53890Support
KeymasterHello and thanks for the demo!
The reason of this problem is in different declaration of events under different versions of Delphi.
Under Delphi 7 this event looks like this:
Code:procedure TForm1.sWebBrowser1DocumentComplete(Sender: TObject; const pDisp: IDispatch; var URL: OleVariant);Under Delphi XE 3:
Code:procedure TForm1.sWebBrowser1DocumentComplete(ASender: TObject; const pDisp: IDispatch; const URL: OleVariant);I think, single solution – to redeclare the event after migration to other Delphi version.
August 30, 2015 at 3:17 pm #53897HeDiBo
Participant'Support' wrote:I think, single solution – to redeclare the event after migration to other Delphi version.
I'm not sure what you mean. :a1:
August 31, 2015 at 1:33 pm #53899Support
KeymasterSorry. I mean – to handle the event in new IDE again.
Also, I have added some changes in the next release, maybe it helps.
September 5, 2015 at 10:41 am #53930HeDiBo
ParticipantProblem solved in 10.16 :a3:
September 5, 2015 at 1:23 pm #53931minou
ParticipantsWebBrowser1DocumentComplete ..ok
sWebBrowser1DownloadComplete ..ok
please add this example to demo
September 5, 2015 at 3:07 pm #53932HeDiBo
ParticipantCan you build an English language version?
Please correct all the indentation errors in the source. Example:
Code:tryif Assigned(Super['places'].AsArray) then // Indented too far
Count :=Super['places'].AsArray.Length else Count :=0;for i := 0 to Count – 1 do
with ListView.Items.Add do
begin
Caption :=(Super['places[' + inttostr(i) + '].name'].AsString);
subitems.Add(Super['places[' + inttostr(i) + '].distance'].AsString);
subitems.Add(Super['places[' + inttostr(i) + '].vicinity'].AsString);
end;except on e:exception do // Does not align with the try statement
result:='произошла ошибка : '+e.Message;
end;if ListView.Items.Count>0 then // does not align with the previous end statement.
result:='Ближайший банк : ' + ListView.Items[0].caption +'только : ' +ListView.Items[0].SubItems[0]+ ' метр'
end;You see, sample code should be impeccable: readers of the example should be able to follow it without extra effort.
Your example is very interesting, because it illustrates the use of Google Maps. :a3:
September 5, 2015 at 5:11 pm #53934minou
Participant'HeDiBo' wrote:Can you build an English language version?
Please correct all the indentation errors in the source. Example:
Code:tryif Assigned(Super['places'].AsArray) then // Indented too far
Count :=Super['places'].AsArray.Length else Count :=0;for i := 0 to Count – 1 do
with ListView.Items.Add do
begin
Caption :=(Super['places[' + inttostr(i) + '].name'].AsString);
subitems.Add(Super['places[' + inttostr(i) + '].distance'].AsString);
subitems.Add(Super['places[' + inttostr(i) + '].vicinity'].AsString);
end;except on e:exception do // Does not align with the try statement
result:='произошла ошибка : '+e.Message;
end;if ListView.Items.Count>0 then // does not align with the previous end statement.
result:='Ближайший банк : ' + ListView.Items[0].caption +'только : ' +ListView.Items[0].SubItems[0]+ ' метр'
end;You see, sample code should be impeccable: readers of the example should be able to follow it without extra effort.
Your example is very interesting, because it illustrates the use of Google Maps. :a3:
Try now
September 12, 2015 at 2:41 pm #53949Support
KeymasterThanks for the example, I will publish it soon.
September 12, 2015 at 5:33 pm #53950HeDiBo
Participant'minou' wrote:Try now
It's a beautiful example. Bravo :a3:
October 2, 2015 at 8:33 am #54032minou
Participantfix
work in win 10 !
November 2, 2015 at 8:34 am #54261arabelaalborn
ParticipantYou all are brilliant!
-
AuthorPosts
- You must be logged in to reply to this topic.