Firemonkey: TWebBrowser not shown when using it in form with BorderStyle None

  

I am developing a Firemonkey application in Delphi XE8 and found the following situation:

I need to show a small webpage in a small form with only a TWebBrowser control with Align:=Client and Form BorderStyle = None but for some reason in Windows the Form appears gray and the TWebBrowser is not shown as you can see in the pictures. In Mac OS work as expected.

Also it happens if I disable one of the BorderIcons like Minimize, Maximize or SystemMenu. I have tried with Delphi 10 and the same issue. I have tried with the trial version of TMS WebBrowser for Firemonkey (TMSFMXWebBrowser) and the same issue.

Form with TWebBrowser and FormStyle = Single in Win32

Form with TWebBrowser and FormStyle = None in Win32

Form with TWebBrowser and FormStyle = Single and Maximize Button = False in Win32

Form with TWebBrowser and FormStyle = Single in Mac OS

Does someone know the reason and how I can fix this? I really would like to show the webpage in a form without any border/icon like in Mac OS.

Comments are closed.