var menu as new WebMenuItem
me.ContextualMenu = menu
to the shown event of a WebListBox. This is basically what the example in documentation.xojo.com says, but the menu does not appear.
By adding the same code to the WebPage’s open event, it works fine (on the entire page, not only for the WebListBox).
What am I missing?
I have the same problem this week with firefox & 2020r2
You aren’t missing anything. Contextual menus are not enabled for WebListBox.
it is very useful, will it be enabled in future?
That is the plan. That said, a contextual menu that just appears anywhere on top of a listbox with no “context” about where the user right-clicked won’t be very useful, which is the reason it’s disabled right now.
Yes sure, the context is important, but I would think that the main context is the clicked row and the second important one is the clicked cell.
Of course this is just my main usage but hope, this gets enabled soon.
Thanks anyway for the clarification.