Table of Contents

Getting started with TMS FNC Web Browser

Prerequisites

  • TMS FNC Core installed and the appropriate runtime package added to the project.
  • FMX, VCL, or WEB Core project.
  • On Windows: WebView2 runtime installed (ships with Windows 11; standalone installer available from Microsoft).

Add the control

  1. Drop TTMSFNCWebBrowser from the TMS FNC UI palette page onto a form.
  2. Set Align to Client so the browser fills the form.
WebBrowser1.URL := 'https://www.tmssoftware.com';
WebBrowser1.Navigate;

Or navigate directly:

WebBrowser1.Navigate('https://www.tmssoftware.com');

Load HTML content

WebBrowser1.LoadHTML('<h1>Hello</h1><p>TMS FNC Web Browser</p>');

Execute JavaScript

WebBrowser1.ExecuteJavaScript('document.title', procedure(AValue: string)
begin
  ShowMessage('Page title: ' + AValue);
end);

Listen for navigation events

procedure TForm1.WebBrowser1NavigateComplete(Sender: TObject; const AURL: string);
begin
  Caption := 'Loaded: ' + AURL;
end;

Next steps

  • Guides — JavaScript bridge, screenshots, downloads, cookies.
  • API reference — full class reference.