Hi,
Here some notes and request about the Combobox plugin.
- It seems that only one combobox can be used at the same time.
- Is there a way to set a different number of listed Items ? (a thread about this)
- plugin[combobox].selectitem(Item_X); does not work when called from <krpano onstart=""> or when it is inside an <action> that is called from <krpano onstart="">. That wants to say, it is not possible to synchronize the selected Combobox Item with a different pano than the first pano defined for the first Combobox Item. Code
Display More<krpano version="1.0.8" onstart="action(Load_Pano2)"> <plugin name="combobox" url="%SWFPATH%/plugins/combobox.swf" /> <action name="combobox:Pano1"> loadpano(pano1.xml,null,MERGE,BLEND(1)); </action> <action name="combobox:Pano2"> loadpano(pano2.xml,null,MERGE,BLEND(1)); </action> <action name="Load_Pano1"> loadpano(pano1.xml,null,MERGE,BLEND(1)); plugin[combobox].selectitem(Pano1); </action> <action name="Load_Pano2"> loadpano(pano2.xml,null,MERGE,BLEND(1)); plugin[combobox].selectitem(Pano2); </action> </krpano>
Using this code the Debugger says: WARNING: unknow action command: plugin[combobox].selectitem and the Combobox stays on first Item...
- When Combobox Items are set with additem(Item_X1, something_to_do ); instead of <action name=combobox:Item_x> then it is not possible to call action(combobox:Item_x). It seems obvious but there is no possibility any-more to call the actions associated to the Combobox Items ...
- Perhaps it can be interesting to add a new attribute, something as an Item_ID... With an attribute like this it would be possible to call a Combobox Item instead if the value of that Item is modified... This comes because I was trying to respond to a thread from Tim2420 where the Combobox Items have to be changed to be displayed in the selected language...
That's all..
Salut.