Fork MediaPortal on GitHub
MediaPortal Windows Media Center

Site navigation


Last Edit

Page last modified 08:55, 5 Oct 2010 by diebagger
MediaPortal Wiki > MediaPortal 1 > Contribute > Skins > Skin Related Changes > 1.1.0 to 1.2.0 > Spinbutton Control Created

Spinbutton Control Created

Was this page helpful?
    Table of contents
    1. 1. Purpose
    2. 2. Description of change

    Purpose

    This control aggregates the look and behavior of the spin control and the button control.

    Description of change

    An example spinbutton can be see in the following screenshot. The up/down arrows are able to be independently focused for control. As the button is clicked the focused arrow scrolls the list of available values and displays each new value to the left of the up/down arrows.

    Focus_Settings_TV.png

    Example of skin xml:

    <control>
      <description>de-interlacing</description>
      <type>spinbutton</type>
      <id>22</id>
      <label>6003</label>
      <onleft>11</onleft>
      <onright>11</onright>
      <onup>30</onup>
      <ondown>23</ondown>
      <textureUp>scroll-up.png</textureUp>
      <textureUpFocus>scroll-up-focus.png</textureUpFocus>
      <textureDown>scroll-down.png</textureDown>
      <textureDownFocus>scroll-down-focus.png</textureDownFocus>
      <spinWidth>16</spinWidth>
      <spinHeight>16</spinHeight>
      <spinXOff>13</spinXOff>
      <spinTextXOff>7</spinTextXOff>
      <spinalign>right</spinalign>
      <spinvalign>middle</spinvalign>
      <spintype>text</spintype>
      <showrange>no</showrange>
      <reverse>yes</reverse>
      <cycleItems>yes</cycleItems>
      <height>34</height>
      <width>995</width>
      <font>menu</font>
      <shadowAngle>45</shadowAngle>
      <shadowDistance>1</shadowDistance>
      <shadowColor>FF000000</shadowColor>
      <textcolor>#settings.buttonTextColor</textcolor>
      <textalign>left</textalign>
      <textvalign>middle</textvalign>
      <textXOff>10</textXOff>
      <textureFocus border="1" position="insideimage" colorKey="66FFFFFF">list-focus.png</textureFocus>
      <textureNoFocus>list-nofocus.png</textureNoFocus>
    </control>



    Running the latest version?

    V1.8.0 - released July 2014
    Releasenews | Download
    Changelog
     | Requirements
    HTPC
    Team-MediaPortal
     
    About
    Contact |  Press
    Partners