(12-13-2022, 08:57 PM)jeroen.rottink Wrote: To force a full page refresh (reload) you can call from your OnAsyncTimer event AsyncReload.Many thanks for your good advice, the AsyncReload works just fine. I have a couple more questions (1) could I have found this out in some documentation somewhere? and (2) when the AsyncReload is actioned, it does not activate any of my delphi code which created the page (mostly centred around a Grid). I was trying to set a TDateTime to record when the reload happened, so that unnecessary reloads would not occur, but the code was not actioned. How is the AsyncReload able to refresh the page without re-actioning the code that originally created it?
Code:procedure TDlgMain.IWTimer1AsyncTimer(Sender: TObject; EventParams: TStringList);
begin
AsyncReload;
end;
On the other hand if you change a property of a IWControl, the state is automaticly synced to the webbrowser. No manual refresh is needed.
|
Forcing a refresh
|
|
|
|
« Next Oldest | Next Newest »
|
| Messages In This Thread |
|
Forcing a refresh - by JimCater - 12-12-2022, 02:42 AM
RE: Forcing a refresh - by jeroen.rottink - 12-13-2022, 08:57 PM
RE: Forcing a refresh - by JimCater - 12-14-2022, 08:12 PM
RE: Forcing a refresh - by jeroen.rottink - 12-14-2022, 08:41 PM
RE: Forcing a refresh - by emmaorabelle - 04-19-2023, 06:42 AM
|
Users browsing this thread: 1 Guest(s)

