I am using delphi's TWebbrowser to navigate to a php file I created. I have a loading screen I would like to show when the page is loading or processing commands.
How can I detect when it is being refreshed or still loading.
currently I am using the ondocumentcomplete
to close the loading form and re-enable the main form once loading is done.
I have tried the onbeforenavigate2
to show the loading screen and disable the main form. But then after it has finished loading, and the document completes, the navigate2 process is run again. And the form again disabled.
is there any way to detect when the browser is loading a page?