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.

nelk

Intermediate

  • "nelk" started this thread

Posts: 358

Location: Paris

  • Send private message

1

Tuesday, May 5th 2009, 9:26pm

access to an item of contexmenu

Hi,

I'd like to change the name of my contextmenu during the virtual.

For instance, if you are in fullscreen mode, the caption is "go in windows mode", and if in windows mode : "go in fullscreen".

I've tried this with no success :

Source code

1
2
3
<contextmenu fullscreen="false">	
<item name="fullscreen" caption="Go in fullscreen" onclick="switch(fullscreen);" />
</contextmenu>


and

Source code

1
2
3
4
5
6
7
<events onenterfullscreen="action(enterfs);"
onexitfullscreen="action(exitfs);"
/>

<action	name="enterfs">
set(contextmenu.item[fullscren].caption,"windows mode");
</action>


any idea?
VideoStitch, a video stitching engine / blog sur les visites virtuelles ( french ).

2

Wednesday, May 6th 2009, 9:28pm

Hi,

normaly that should work,
but you have a typo in your example:

<item name="fullscreen" ...

and

set(contextmenu.item[fullscren].caption ..

fullscreen vs. fullscren

best regards,
Klaus

nelk

Intermediate

  • "nelk" started this thread

Posts: 358

Location: Paris

  • Send private message

3

Thursday, May 7th 2009, 1:08pm

oups :-)
VideoStitch, a video stitching engine / blog sur les visites virtuelles ( french ).

Similar threads