Is it posible to make browser borderless (without titlebar) but with remaining taskbar icon?

988 views
Skip to first unread message

fare...@gmail.com

unread,
Jul 1, 2017, 3:44:10 AM7/1/17
to CEF Python
So I'm trying to make the Browser itself look more like a borderless app but with a remaining icon on taskbar. This is common within a tiled window manager (on Linux), but its pretty hard getting this on Windows.

Is it possible to get a borderless (frameless) window/browser on Windows with a reimaining task on the taskbar?


Also: I want to make this window draggable in all window. So, you have a button on the browser (<button>Button</button>) and you click on it, and it triggers. But if you click and drag on the body, you can drag/move the window.

Thanks,
Facundo.

Czarek Tomczak

unread,
Jul 1, 2017, 4:18:15 AM7/1/17
to CEF Python
Hi Facundo,

To make a borderless window you have to read through wxPython/PyQt docs or whatever GUI framework you use. In upstream CEF there is built-in GUI framework called CEF Views, but this is not yet exposed in cefpython (#252).

Regarding dragging, you can listen to drag events in javascript and then communicate back with Python using Javascript bindings.

Best regards.

fare...@gmail.com

unread,
Jul 1, 2017, 4:21:38 AM7/1/17
to CEF Python
So, I can't make windows borderless without any gui framework (qt, wxpython)? I mean only using browser object returned from CreateSyncBrowser()?

Thanks,
Facundo

Czarek Tomczak

unread,
Jul 1, 2017, 4:25:02 AM7/1/17
to CEF Python
Currently no. CEF Views might allow it in the future.

Czarek Tomczak

unread,
Jul 1, 2017, 4:27:56 AM7/1/17
to CEF Python
If you're worried about size/dependencies then there is an option to make direct WinAPI calls using ctypes/pywin32 on Windows for example.

fare...@gmail.com

unread,
Jul 1, 2017, 4:31:16 AM7/1/17
to CEF Python
Thanks. Actually what aim trying to do is make a 2d board game using only cefpython + flask + react. I think using cef will allow me to do great things without having to do a lot of coding.

Thabks.
P/D: any advice is very apreciated

Czarek Tomczak

unread,
Jul 1, 2017, 4:52:40 AM7/1/17
to CEF Python
Good luck and have fun :)

Aric WithanA

unread,
Jul 1, 2017, 2:38:48 PM7/1/17
to CEF Python
I'd second CT's WinAPI using pywin32.  I use it myself since I had some unique needs myself and didn't need/want a gui library.  There should be a file in the repo called cefwindow.py which can be expanded/tweaked to control the window in Windows (i use win10).  What you'll need to do is change up the flags the parent window uses when it generates using the win32con.XXX_XXX with the CreateWindowEx and the SetWindowPos functions from pywin32.  

https://msdn.microsoft.com/en-us/library/windows/desktop/ms633545(v=vs.85).aspx


Czarek Tomczak

unread,
Jul 1, 2017, 2:44:51 PM7/1/17
to CEF Python
Reply all
Reply to author
Forward
0 new messages