|
|
#1 |
|
Junior Member
Join Date: Oct 2008
Posts: 28
|
OnDocumentComplete
Why does TEmbeddedWB fire an OndocumentComplete upon startup without anything loaded ?
If I have a form with just the TEmbeddedWB on it, it fires an OnDocumentComplete when starting the application. Now when I want to load a local file it fires the event twice, giving me errors because during the first event firing the file isn't actually loaded, only during the second event firing.... Can't put my finger on this.... [Edit] I just checked, but TWebBrowser does not have this behaviour.. Last edited by Alfred; 11-10-2009 at 08:42 PM. Reason: typo |
|
|
|
|
|
#2 |
|
Junior Member
Join Date: Nov 2008
Posts: 14
|
I have the same behaviour with the latest build. Seems like the TEmbeddedWb autonavigate to about:blank during creation.
|
|
|
|
|
|
#3 |
|
Junior Member
Join Date: Oct 2008
Posts: 28
|
Yeah, my program was suddenly broken...
Can't remember any problems with previous builds either. |
|
|
|
|
|
#4 |
|
Main Developer
Join Date: May 2006
Posts: 937
|
1. Open EmbeddedWB.pas
2. Go to Code:
procedure TEmbeddedWB.HTMLCodeChanged(Sender: TObject); Code:
LoadFromStrings(HTMLCode);
Code:
if HTMLCode.Count <> 0 then
LoadFromStrings(HTMLCode);
|
|
|
|
|
|
#5 |
|
Junior Member
Join Date: Oct 2008
Posts: 28
|
yes, that does the trick...
Thanks |
|
|
|
![]() |
| Thread Tools | |
| Display Modes | |
|
|