listbox.activecell contextual menu ?

Sigh…

Here is a complete project that combines the two workarounds I posted. It is tested, it works, and now it’s up to you to see if it is not complicated enough :stuck_out_tongue:

intercepteditpaste.xojo_binary_project

<https://xojo.com/issue/44705>
I made a test project in this feedback that does not work.

Michel, your project works. Mine does not.
the difference with mine seems only that I made a listbox subclass ?

At a quick glance, your way of getting to the menuItem does not seem the same.

You can probably use my project as base.

I kinda fixed the problem…
the menu handler for the special paste must be on the window
if it is on the control, it is not fired.
that’s annoying because I want to make the menu belong to the control …
it is the control that knows how to handle the special paste, not the window.

is there a way to make the menu handler fire in the control ?