MediaPortal Windows Media Center
MediaPortal Wiki > MediaPortal 1 > Contribute > Skins > Skin Architecture > Skin Controls > Slider

Slider

Was this page helpful?

    Description

    A slider in MediaPortal.

    Images

    Slider (spintype=float): slider_float.png

    Slider (spintype=int): slider_int.png

    The above pictures are generated when using the xml example and the following textures:

    textureSliderBar: osd_slider_bg.png - e.g. in VideoOSD.xml to display ffdshow post processing controls

    textureSliderNib: osd_slider_nibFO.png

    textureSliderNibFocus: osd_slider_nibNF.png

    Changelog

    ChangeDateVersion
    FFDShow Post Processing OSD bar2011/05/311.1.0 to 1.2.0

    Tags

    GUISliderControl (slider)

    Element Name

    Data Type

    Description

    textureSliderBar

    String

    The background texture of the control

    textureSliderNib

    String

    The unfocused texture.

    textureSliderNibFocus

    String

    The focused texture

    font

    String

    The font used for the text label

    showrange

    Boolean

    Show a textual representation of the current value

    textcolor

    Long

    A color of the label text

    spintype

    Spintype

    The spin type of control: Int | Float | Text | Disc

    Inherited by GUIControl

    See GUIControl for the full documentation of this control.

    Element Name Data Type Description
    id Integer The id of the control. The id will couple the skin file to the code, so if we later on want to check that a user pressed a button, the id will be required and must be unique. For controls that will never be referenced in the code it is safe to set it to "1"
    description String An optional description of the control for your reference
    type String The type of the control, for instance "button", "label", "textbox" and all other controls.
    posX Integer The X-position on the window for this control
    posY Integer The Y-position on the window for this control
    width Integer The width of this control
    height Integer The height of this control
    onleft Integer The control id to move the focus to when the user moves left. If not specified (or zero) MediaPortal will find the closest control in that direction to move to
    onright Integer The control id to move the focus to when the user moves right. If not specified (or zero) MediaPortal will find the closest control in that direction to move to
    onup Integer The control id to move the focus to when the user moves up. If not specified (or zero) MediaPortal will find the closest control in that direction to move to
    ondown Integer The control id to move the focus to when the user moves down. If not specified (or zero) MediaPortal will find the closest control in that direction to move to
    colordiffuse Long Allows you to mix a color & a graphics texture. E.g. If you have a graphics texture like a blue button you can mix it with a yellow color diffuse and the end result will be green. Defaults to 0xFFFFFFFF
    dimColor Integer Color for a control when it is not focussed. Defaults to half transparent (0x60ffffff)
    onfocus String [Since 1.3] Executes a MediaPortal skin function when the control gains focus.  See Skin Settings for more information.

    XML examples

    <control>
      <description>Video Position Slider</description>
      <type>slider</type>
      <id>700</id>
      <posX>20</posX>
      <posY>620</posY>
      <spintype>int</spintype>
      <showrange>no</showrange>
      <textureSliderBar>osd_slider_bg.png</textureSliderBar>
      <textureSliderNib>osd_slider_nibNF.png</textureSliderNib>
      <textureSliderNibFocus>osd_slider_nibFO.png</textureSliderNibFocus>
      <onup>220</onup>
      <ondown>700</ondown>
      <onleft>700</onleft>
      <onright>700</onright>
      <visible>no</visible>
      <animation effect="fade" time="250">visiblechange</animation>
      <animation effect="fade" time="250">windowopen</animation>
    </control>



    Tag page (Edit tags)
    • No tags
    Running the latest version?

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