You are not logged in.

1

Sunday, June 2nd 2019, 9:12am

Context menu - Switch caption on click

Hi,

How can I switch the caption for context menu items? Just like the enterfs and exitfs, I would like to do this for custom items.

Thanks!

2

Saturday, June 15th 2019, 2:56pm

Hi,

just set other values, e.g.

Source code

1
set(contextmenu.item[youritem].caption, 'the new text for that item');


That can be done anytime, or if you want to update the contextmenu directly before opening use the oncontextmenu event:
https://krpano.com/docu/xml/#events.oncontextmenu

Best regards,
Klaus