Search found 4 matches

by mve001
Wed Apr 16, 2025 9:31 am
Forum: Bugs - Mac OSX
Topic: [Done] OpenWindow ignores x/y beyond primary display
Replies: 1
Views: 2891

[Done] OpenWindow ignores x/y beyond primary display

I have two 4K displays attached to my Mac Mini. They are arranged horizontally with the second display's origin at 2560/0.

When I run the following code the window does not appear on my second display but at a weird location on my first:

OpenWindow(0, 2560, 0, 195, 260, "PureBasic Window",
#PB ...
by mve001
Sat Nov 30, 2024 9:44 am
Forum: Windows
Topic: WebViewGadget ignores WEBVIEW2_ADDITIONAL_BROWSER_ARGUMENTS
Replies: 4
Views: 5007

Re: WebViewGadget ignores WEBVIEW2_ADDITIONAL_BROWSER_ARGUMENTS

I don't know if it will help you, but I've now slightly modified the code from

https://www.purebasic.fr/english/viewtopic.php?p=618050&hilit=CreateCoreWebView2EnvironmentWithOptions#p618050

by adding SetEnvironmentVariable("WEBVIEW2_ADDITIONAL_BROWSER_ARGUMENTS", "--force-device-scale-factor=1 ...
by mve001
Fri Nov 15, 2024 2:53 pm
Forum: Windows
Topic: WebViewGadget ignores WEBVIEW2_ADDITIONAL_BROWSER_ARGUMENTS
Replies: 4
Views: 5007

Re: WebViewGadget ignores WEBVIEW2_ADDITIONAL_BROWSER_ARGUMENTS

Thanks for your swift reply. I'd have no problem using WebGadget over WebViewGadget except WebGadget does not support "BindWebViewCallback" or "WebViewExecuteScript". Does this mean WEBVIEW2_ADDITIONAL_BROWSER_ARGUMENTS will work with WebViewGadget in a future update?
by mve001
Fri Nov 15, 2024 2:07 pm
Forum: Windows
Topic: WebViewGadget ignores WEBVIEW2_ADDITIONAL_BROWSER_ARGUMENTS
Replies: 4
Views: 5007

WebViewGadget ignores WEBVIEW2_ADDITIONAL_BROWSER_ARGUMENTS

Hi everyone,

I am trying to create a WebViewGadget that honors the settings passed through WEBVIEW2_ADDITIONAL_BROWSER_ARGUMENTS, specifically "--force-device-scale-factor=1".

Currently, WebGadget does honor the setting, WebViewGadget does not. I am running PureBasic 6.12 LTS on Windows 11.

If ...