Look at WebControl.ContextualMenuAction and apply the example. It displays a rather nice contextual menu upon right-click. No need to look for anything else
And you can apply that by control, or to the entire page. Is it not great ?
[quote=66847:@dave duke]Now, on the webpage add an event handler of mousemove, DO NOT ADD ANY CODE TO IT, just an empty event handler.
Run it now, hey presto!, you can not select anything in the listbox.[/quote]
I found a workaround : place a webCanvas as window background and add the MouseMove or MouseDown to it. It does not break the listbox select and you can populate these events
Where is the “memory leak” ? In the browser or in your app?
This WebContainer. Is it dynamic or is it an instance on the WebPage?
Re: Feedback - Since you’re a beta tester, please go to the beta channel and download the latest version. I’m curious if you’re having the crashing problem there.
I just wrote a quick app to verify the no select bug and found the canvas workaround, but did not suspect you where after a dynamic help popping up when hovering objects.
I just completed a small test app where an invisible styled label pops up when the mouse hovers on objects which is what I understand you want to do. I did not use mousemove but simply placed the code in the object mouseenter and mouseexit.
Upon enter I render the label visible, and place it above the object which top and left I have. No need to know where the mouse is. Upon exit I render the label invisible again.
Sure, it may be a little more work to place code in each object, but it is not specific, so you can copy/paste the events. You could also create a method and simply change the text through call parameter.
[quote=67138:@dave duke]I just happened to be watching memory usage as I moved the mouse around, and just by moving the mouse on the web canvas it seems to be leaking memory, I have managed to leak over 500mb by just moving the mouse around on the (canvas) on the webpage. It’s leaking about 2mb a second constant mouse movement.
The code in the canvas on mouse move is just webcontainer.visible=false
Michel, do you get this in your test program?[/quote]
How do you measure memory usage ?
Mousemove is a huge traffic gobbler, as your programs needs to know where is the mouse at any instant. It may account for the problem.
What I did does not require it.
[code]Sub MouseEnter()
Label1.visible = True
Label1.Left = Me.left+Me.width/2-(Label1.Width/2)
Label1.top = me.top-Label1.Height-20
End Sub
Sub MouseExit()
Label1.visible = False
End Sub
[/code]