FNC WebBrowser Zoom

OK how do I set "zoom" level in the webbrowser using code?

Hi,

When targeting Windows, you can use the following code:

uses
  FMX.TMSFNCWebBrowser.Win;

procedure TForm1.Button1Click(Sender: TObject);
var
  c: ICoreWebView2Controller;
begin
  c := ICoreWebView2Controller(TMSFNCWebBrowser1.NativeBrowser);
  c.put_ZoomFactor(10);
end;

There is currently no equivalent for the other platforms. We'll investigate he possibilities.

Thanks, this is precisely what I am looking for, only thing is I work in Lazarus so I've added "LCLTMSFNCWebBrowserWin" into uses clause and it works fine. Only other thing, the parameter is a double float so that 10 should be 0.10 in case anyone else wants to use it.

It appears that "zoom" function is non standard across different browsers so you can't really do it properly in Java Script.

Thanks for the feedback!