Properties, Web-related


WebOffline Sets the "Offline connection" mode before a browser navigation operation.
Notes:
  • This property is available only when "OFFLINE" define is uncommented in ATViewerOptions.inc. When the property is used, the "wininet.dll" is linked to the application at runtime.
  • This will toggle the global MSIE Offline flag (not TWebBrowser.Offline, since it doesn't work).
  • You don't need to read the global Offline flag at application startup and then restore it on exit. The component performs this task by itself.
WebBusy (public, read-only) Returns the busy state of browser object.
You must check this value in your form's OnCloseQuery event handler like this:
   procedure TForm1.FormCloseQuery(Sender: TObject; var CanClose: Boolean);
   begin
     CanClose := not ATViewer1.WebBusy;
   end;
WebAcceptAllFiles Enables the "File Download" browser dialog when attempt to open an unknown file type is performed in Internet mode.
Note:
  • When "IE4X" conditional define is commented in ATViewerOptions.inc, this property is not used. When "IE4X" define is uncommented, this property is used and is False by default so no "File Download" dialogs appear.
WebWaitForNavigate Enables the waiting for browser navigation completion.
Note:
  • Default is False: usually this is not needed and also not recommended (because the time for navigation completion may be significant and this will look like the application is "frozen"). But sometimes it may be useful: for example, if you want to scroll the control (using PosPercent property) immediately after page opening.