Spin Control

From DevWiki

Jump to: navigation, search

Applications,Boxee GUI API,Controls

Contents


Overview

The spin control is used for when a list of options can be chosen (such as a page up/down control). You can choose the position, size, and look of the spin control.


Example

  1. <control type="spincontrol" id="14">
  2.    <description>My first spin control</description>
  3.    <posx>80</posx>
  4.    <posy>60</posy>
  5.    <width>250</width>
  6.    <height>200</height>
  7.    <visible>true</visible>
  8.    <colordiffuse>FFFFFFFF</colordiffuse>
  9.    <textureup>myuptexture.png</textureup>
  10.    <textureupfocus>myupfocustexture.png</textureupfocus>
  11.    <texturedown>mydowntexture.png</texturedown>
  12.    <texturedownfocus>mydownfocustexture.png</texturedownfocus>
  13.    <subtype>page</subtype>
  14.    <font>font12</font>
  15.    <textcolor>FFFFFFFF</textcolor>
  16.    <disabledcolor>80FFFFFF</disabledcolor>
  17.    <align></align>
  18.    <aligny></aligny>
  19.    <textoffsetx></textoffsetx>
  20.    <textoffsety></textoffsety>
  21.    <pulseonselect></pulseonselect>
  22.    <onup>2</onup>
  23.    <ondown>3</ondown>
  24.    <onleft>1</onleft>
  25.    <onright>1</onright>
  26. </control>


Available Tags

In addition to the Default Control Properties the following tags are available. Note that all XML tags are in lower case.

Element Description Required
textureup Specifies the image file which should be displayed for the up arrow when it doesn't have focus. See here for additional information about textures. No
textureupfocus Specifies the image file which should be displayed for the up button when it has focus. No
texturedown Specifies the image file which should be displayed for the down button when it is not focused. No
texturedownfocus Specifies the image file which should be displayed for the down button when it has focus. No
font Font used for the button label. From fonts.xml. No
textcolor Color used for displaying the label. In AARRGGBB hex format, or a name from the colour theme.. No
disabledcolor Color used for the label if the control is disabled. In AARRGGBB hex format, or a name from the colour theme. No
shadowcolor Specifies the color of the drop shadow on the text. In AARRGGBB format, or a name from the colour theme. No
subtype Defines what type of information the spinner holds. Can be int, float, text or page. Defaults to text. Make sure you use page for a page control. No
align Label horizontal alignment on the control. Defaults to right, can also be left. No
aligny Label vertical alignment on the control. Defaults to top, can also be center. No
textoffsetx Amount to offset the label from the left (or right) edge of the button when using left or right alignment. No
textoffsety Amount to offset the label from the top edge of the button when using top alignment. No
Personal tools
Namespaces
Variants
Actions
Navigation
Toolbox