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

Fadelabel

Was this page helpful?

    Description

    A label to display text in MediaPortal. In addition to the standard label control, this control will scroll the text when it is too long for the width of the control.

    Changelog

    ChangeDateVersion
    Fadelabel text wrapping and button control with fadelabel2010/10/101.0.1 to 1.1.0
    Fadelabel allowFadeIn2013/01/271.2.0 to 1.3.0
    Fadelabel Wrapping2010/10/051.1.0 to 1.2.0
    Fadelabel Flickering Text2010/10/051.1.0 to 1.2.0
    Shadow text2010/10/101.0.1 to 1.1.0

    Tags

    GUIFadelabelControl (fadelabel)

    Element Name

    Data Type

    Description

    font String The font to use to display the label.
    label String The label text, property or a number that corresponds to an id in the strings.xml file.
    textcolor Long The color of the text. Defaults to 0xFFFFFFFF.
    align Alignment Align the text 'left', 'right' or 'center'.
    valign VAlignment Vertically algin the text 'top', 'middle' and 'bottom'.
    shadowAngle Integer Angle of shadow relative to text.
    shadowDistance Integer Distance between shadow and text.
    shadowColor Long Color of shadow.
    scrollStartDelaySec Int Seconds that will pass until the text starts scrolling.
    wrapString String Text that will be shown after the whole text scrolled through.
    allowFadeIn Boolean  v1.3.0  - fade in or not - default=yes (preserves backwards compatibility)

    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>default fadelabel</description>
      <type>fadelabel</type>
      <id>5</id>
      <posX>55</posX>
      <posY>530</posY>
      <width>180</width>
      <align>left</align>
      <font>font13</font>
      <textcolor>ffffffff</textcolor>
      <allowFadeIn>no</allowFadeIn>
    </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