jchv / go-webview2

WebView2 bindings for pure Go, without CGo, based on the webview/webview bindings.
Other
256 stars 63 forks source link

Frameless and fixed position possible? #37

Open TheFranconianCoder opened 2 years ago

TheFranconianCoder commented 2 years ago

Hi, I have a small background application which sits in the Tray. Via menu entry there one can open a little WebView2 front-end. In this case I would like to open it without any system frame and next to the Tray with a fixed position. Would something like this be possible with WebView2? I could image it's even totally independent to WebView2 and I just miss the knowledge of doing it with syscalls etc. TIA.

jchv commented 2 years ago

Right now, go-webview2 doesn’t allow you to customize the window that gets created to host the webview2 component very much, but this could be improved in the future.

In theory, it is also possible to tell go-webview2 to spawn the webview2 component into an already existing window, but I think that was broken at some point. This is a part of the library that could use some improvement.