WebListBox contextual menu not appearing

Hello,

I added

var menu as new WebMenuItem
menu.AddMenuItem(“Edit”)
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?

Thanks,
Thomas

I have the same problem this week with firefox & 2020r2

You aren’t missing anything. Contextual menus are not enabled for WebListBox.

1 Like

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.

3 Likes

Hello Greg,
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.
Regards,
Thomas

3 Likes