Context Menu

muhammadwahid

New member
WebView2 issue

I’ve investigated the issue where the right-click context menu does not open at the correct position, and I’ve identified the root cause.


The problem is caused by DPI scaling differences between the coordinates provided by the internal browser engine and the coordinates used by the native application window.


The internal Chromium-based browser used by ExeOutput provides mouse coordinates (clientX / clientY) in CSS pixels.


However, the native Windows API functions used to display context menus expect coordinates in physical (device) pixels.


When the system uses DPI scaling (e.g., 125%, 150%, 175%), these two coordinate systems no longer match.


As a result, the context menu appears offset from the cursor location.


The solution is to apply the current DPI scale factor (window.devicePixelRatio) and convert the CSS-pixel coordinates to physical pixels before displaying the context menu.


This explains the incorrect context-menu positioning and provides a clear path to fix it.
 
Hello ExeOutput 4 php team,

Thank you for your continuous improvements to the product. I would like to request a few features that would greatly help us customize our applications further.




1. Custom Download Bar (WebView2)


Currently, WebView2 shows its native download bar, which displays download details and URLs.
We would like an option to:


  • completely disable the native WebView2 download UI
  • replace it with a fully custom download bar
  • fully hide or mask download URLs

This is important for branding and security.




2. Hide Native HTTP Auth (HTAccess) Popup


Thank you for providing options for custom HTAccess authentication dialogs.


However, the native popup still appears and shows the real site link/URL.
It would be helpful to:


  • fully disable the native authentication dialog
  • only use the custom authentication dialog
  • hide all real URLs shown by WebView2



3. Context Menu Issues (Copy/Paste & Position)


In WebView2:


  • Copy and Paste sometimes do not work
  • The context menu does not appear at the correct cursor position

It would be great if these could be fixed.




4. Chromium CEF Enhancements


We would also appreciate similar improvements for the Chromium CEF engine:


  • Custom Error Page Handling
    Ability to show a custom HTML error page (like WebView2 “NavigationCompleted” error handling).
  • Custom Download Bar with Link Hiding
    Same as WebView2:
    • disable native download UI
    • fully custom download bar
    • hide all download URLs



Reason


WebView2 provides very rich customization options, and having similar flexibility in ExeOutput (for both WebView2 and CEF) would allow us to build more professional, secure, and branded applications.




Thank you for considering these requests.
 
Back
Top