TPreviewHTML Methods

  • LoadHTML
  • Stop
  • Refresh
  • GoBack
  • GoForward
  • GoHomepage
  • GoSearchpage
  • NextFontZoom
  • GetLocationURL
  • GetLocationName

  • method LoadHTML

    procedure LoadHTML(const HTML:WideString);

    Description :
      Load HTML files to the application window.
      Example :
      procedure Button1Click(Sender:TObject);
      begin
        PreviewHTML1.LoadHTML(OpenDialog1.Filename);
      end;

    method Stop

    procedure Stop;

    Description :
      Stop loading HTML.
      Example :
      procedure StopButtonClick(Sender:TObject);
      begin
        PreviewHTML1.Stop;
      end;

    method Refresh

    procedure Refresh;

    Description :
      Reloads the HTML file that is currently displaying.
      Example :
      procedure RefreshButtonClick(Sender:TObject);
      begin
        PreviewHTML1.Refresh;
      end;

    method GoBack

    procedure GoBack;

    Description :
      Load previous page if available .
      Example :
      procedure BackButtonClick(Sender:TObject);
      begin
        PreviewHTML1.GoBack;
      end;

    method GoForward

    procedure GoForward;

    Description :
      Load next page if available .
      Example :
      procedure ForwardButtonClick(Sender:TObject);
      begin
        PreviewHTML1.GoForward;
      end;

    method GoHomepage

    procedure GoHomepage;

    Description :
      Load HTML form Homepage address .
      Example :
      procedure GoHomeButtonClick(Sender:TObject);
      begin
        PreviewHTML1.GoHomepage;
      end;

    method GoSearchpage

    procedure GoSearchpage;

    Description :
      Load HTML form Searchpage address .
      Example :
      procedure GoSearchButtonClick(Sender:TObject);
      begin
        PreviewHTML1.GoSearchpage;
      end;

    method NextFontZoom

    procedure NextFontZoom;

    Description :
      Increment the current font zoom value. It will return the minimum value if the current zoom value is maximum .
      Example :
      procedure FontButtonClick(Sender:TObject);
      begin
        PreviewHTML1.NextFontZoom;
      end;

    method GetLocationURL

    function GetLocationURL:String;

    Description :
      Returns URL name that HTML is currently displaying.
      Example :
      procedure Button1Click(Sender:TObject);
      begin
        PreviewHTML1.LoadHTML(OpenDialog1.Filename);
        URLCombo.Text:=PreviewHTML1.GetLocationURL;
      end;

    method GetLocationName

    function GetLocationURL:String;

    Description :
      Returns document name that HTML is currently displaying.
      Example :
      procedure Button1Click(Sender:TObject);
      begin
        PreviewHTML1.LoadHTML(OpenDialog1.Filename);
        URLCombo.Text:=PreviewHTML1.GetLocationName;
      end;

    TPreviewHTML Methods   Gotop