Firemonkey: TWebBrowser is not displayed when used in a form with BorderStyle No

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

I need to show a small web page in a small form using only the TWebBrowser control with Align: = Client and Form BorderStyle = None, but for some reason on Windows the form looks gray and TWebBrowser does not appear, as you can see in Pictures . On Mac OS they work as expected.

It also happens if I disable one of the BorderIcons, for example Minimize, Maximize or SystemMenu. I tried Delphi 10 and the same problem. I tried with a trial version of TMS WebBrowser for Firemonkey (TMSFMXWebBrowser) and the same problem.

Form with TWebBrowser and FormStyle = Single in Win32 enter image description here

Form with TWebBrowser and FormStyle = None in Win32 enter image description here

TWebBrowser FormStyle = Single Maximize Button = False Win32 enter image description here

TWebBrowser FormStyle = Mac OS enter image description here

- ? - - /, Mac OS.

+4
1

,

-1

Source: https://habr.com/ru/post/1616244/


All Articles