dropdown.swf
FPP hotspot plugin for displaying a combobox - or dropdown - menu.
Menu items can also be selected from FPP functions.The plugin reads configuration data from an external XML file.
Plugin parameters are read from an external xml file with the default name "dropdown.xml". If you
want to use a different name, use the spot xmlFile="..." attribute.
Example menu <spot>:
Tags and attributes used in plugin XML file:
NOTES: Attribute names are not case sensitive ("Rows" is equal to "rows"). If you want to change the selected item in the dropdown menu without executing the FPP command, you can set the <spot> attribute select="xxx". The value "xxx" can be either the menu item text or the number of the menu item (1-n).
Example of plugin xml file:
Version history:
<spot id="dropdown" url="dropdown.swf" static="1" salign="TR" align="TR" staticX="-10" staticY="10" alpha="1.0" buttonMode="1" blockMouse="1" />
Tags and attributes used in plugin XML file:
In <dropdown> tag: | ||
width | width="140" | menu width, default=150 |
height | height="22" | height of menu box when closed, default=25 |
rows | rows="6" | dropdown rows, default=5 |
In <item> tag: | ||
label | label="Master bedroom" | menu item text |
command | command="global.goBedroom" | FPP command when selected |
selected | selected="1" | menu item will be selected initially |
NOTES: Attribute names are not case sensitive ("Rows" is equal to "rows"). If you want to change the selected item in the dropdown menu without executing the FPP command, you can set the <spot> attribute select="xxx". The value "xxx" can be either the menu item text or the number of the menu item (1-n).
Example of plugin xml file:
<?xml version = '1.0'?> <dropdown width="140" height="22" rows="6" > <item label="Af Chapman" command="global.goAfChapman" /> <item label="Skeppsholmen South" command="global.goSkepp2" /> <item label="Skeppsholmen East" command="global.goSkepp3" selected="1" /> <item label="Pan 60 right" command="pano.pan+=60,2500" /> <item label="Pan 90 right" command="pano.pan+=90,2500" /> <item label="Pan 120 right" command="pano.pan+=120,2500" /> <item label="Pan 60 left" command="pano.pan-=60,2500" /> <item label="Pan 90 left" command="pano.pan-=90,2500" /> <item label="Pan 120 left" command="pano.pan-=120,2500" /> <item label="Do anything" command="" /> <item label="Do anything else" command="" /> </dropdown>
Version history: