Quantcast
Channel: Xojo Programming Forum - Latest topics
Viewing all articles
Browse latest Browse all 3866

Find out if mouse is over an image for HtmlViewer

$
0
0

Following the discussion in Context menu for HtmlViewer I need to find out if the mouse is over an an image in the HtmlViewer (or WKWebviewMBS) or not.

According to

I need to add some sort of

me.EvaluateJavaScript("document.addEventListener('mouseover', function(e) { xojo.triggerWebEvent('cursorEvent', e.clientX + ':' + e.clientY + ':' + e.target.tagName); });")

according to ChatGPT. According to the docs "xojo.triggerWebEvent"should be " “executeInXojo”. How do I use this? I can’t find any example.

Confused…

Is there a simpler way to find this out? Is this possible at all?

4 posts - 3 participants

Read full topic


Viewing all articles
Browse latest Browse all 3866

Trending Articles