Page 1 of 1

Re: How to create a borderless popup window correctly

Posted: Mon Mar 05, 2018 10:12 am
by salvadordf
TCefWindowInfo is known as cef_window_info_t in CEF3 and it's declared here : https://github.com/chromiumembedded/cef ... ypes_win.h

Some parameters are the standard parameters required by CreateWindowEx() like ex_style, window_name, style, x, y, width, height, parent_window and menu.

Those parameters are initialized using a CefWindowInfo class declared here :
https://github.com/chromiumembedded/cef ... /cef_win.h

CefWindowInfo uses these functions :
  • SetAsChild : known as WindowInfoAsChild in CEF4Delphi.
  • SetAsPopup : known as WindowInfoAsPopUp in CEF4Delphi.
  • SetAsWindowless : knwon as WindowInfoAsWindowless in CEF4Delphi.
I guess it shouldn't be a problem to have a different "style" parameter but to be safe I would use WindowInfoAsChild, WindowInfoAsPopUp and WindowInfoAsWindowless only.

Re: How to create a borderless popup window correctly

Posted: Mon Mar 05, 2018 3:24 pm
by salvadordf
You should use WindowInfoAsPopUp but you can modify the window style at runtime calling SetWindowLong. This is an example :
http://www.delphitricks.com/source-code ... n_bar.html

You will need the form handle to call SetWindowLong but you can call the GetParent function with TChromium.WindowHandle as parameter to get it.