You are not logged in.

jeromebg

Professional

  • "jeromebg" started this thread

Posts: 1,120

Location: Angers - France

Occupation: 360 experiences creator

  • Send private message

1

Monday, September 5th 2011, 10:06am

Combobox.js with custom icon instead first item ?

Hi, I'm trying to replace the default dropdown combobox first item by an icon to open the list :

Source code

1
2
3
4
5
6
7
8
9
10
11
12
	<plugin name="settings" url="icons/settings.png"
	 align="leftbottom" x="10" y="0"
	 onclick="plugin[cb].openList();"
	 />
	 
<plugin name="cb" url="../plugins/combobox.js"
    	align="leftbottom" x="10" y="80" native="false"
    	>
	<item name="item1" caption="Item 1" onclick="..." />
	<item name="item2" caption="Item 2" onclick="..." />
	<item name="item3" caption="Item 3" onclick="..." />
</plugin>


The icon opens the list but the default dropdown button is still visible... is there a way not to display it ?

Thanx !

jeromebg

Professional

  • "jeromebg" started this thread

Posts: 1,120

Location: Angers - France

Occupation: 360 experiences creator

  • Send private message

2

Friday, October 7th 2011, 8:49am

Up !!!

3

Wednesday, October 12th 2011, 7:42pm

Hi,

just add visible="false" to the combobox plugin,

best regards,
Klaus

manigordo

Trainee

Posts: 75

Location: Costa Rica

  • Send private message

4

Monday, October 17th 2011, 5:32pm

combobox plugin

Hi,
I pasted the combobox plugin as it appears in the example in a VT created with krpano tools.

<[b][u]addIdItem(item1, 'Item 1', trace(Item 1 clicked) );
addIdItem(item2, 'Item 2', trace(Item 2 clicked) );
addIdItem(item3, 'Item 3', trace(Item 3 clicked) );
...
</action>
The plugin displays, but I don't know how to make it load the panoramas.
I am a beginner and I dont know much about scripting and languages(XML, java,...)
[/u][/b]




5

Tuesday, October 18th 2011, 12:10pm

Hi,
I pasted the combobox plugin as it appears in the example in a VT created with krpano tools.
I'm not sure if I understand right - is your question also about to hide the combobox and show a custom icon or about general usage?
for general usage I would recommend the plugin documentation:
http://krpano.com/plugins/combobox/#top

if you were adding the combobox to a tour that was build with the MAKE VTOUR droplets - then also add - keep="true" - to the <plugin> element to avoid that the combobox plugin will be removed when the first scene will be loaded,

best regards,
Klaus

Similar threads