You are not logged in.

Dear visitor, welcome to krpano.com Forum. If this is your first visit here, please read the Help. It explains in detail how this page works. To use all features of this page, you should consider registering. Please use the registration form, to register here or read more information about the registration process. If you are already registered, please login here.

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