Using SkinSettings/Expressions in Hyperlink, Action, textcolor and OnLeft/right/up/down not possible (1 Viewer)

mbuzina

Retired Team Member
  • Premium Supporter
  • April 11, 2005
    2,839
    726
    Germany
    Home Country
    Germany Germany
    MediaPortal Version: 1.4.0

    Description

    When trying to make a flexible skin it is useful to use skin expressions (and/or SkinSettings) in the fields Hyperlink, Action, textcolor (probably all color fields), onleft, onright, onup and ondown.

    It seems that MP will not evaluate Expressions in numeric fields. This hinders skin development.

    Steps to Reproduce:
    Set a skin property <entry Name="#test">35</entry>, add a button to the skin as follows:
    XML:
    <control>
      <type>button</type>
      <id>1</id>
      <label>TEST</label>
      <hyperlink>#test</hyperlink>
    </control>

    And MP will stop rendering any controls after this control. Log will contain the error (log from real live experiment, includes trying cint conversion function. Result is the same for any type of expression):
    Code:
    [2013-06-13 13:50:13,178] [Log	] [MPMain  ] [INFO ] - GUIControlFactory.Create: #(cint(#BasicHome.B0.Hyperlink)) ist kein gültiger Wert für Int32.
     
      bei System.ComponentModel.BaseNumberConverter.ConvertFrom(ITypeDescriptorContext context, CultureInfo culture, Object value)
      bei System.ComponentModel.TypeConverter.ConvertFromString(ITypeDescriptorContext context, CultureInfo culture, String text)
      bei MediaPortal.GUI.Library.GUIControlFactory.ConvertXmlStringToObject(String valueName, String valueText, Type type)
      bei MediaPortal.GUI.Library.GUIControlFactory.UpdateControlWithXmlData(GUIControl control, Type controlType, XmlNode pControlNode, IDictionary`2 defines, String filename)
      bei MediaPortal.GUI.Library.GUIControlFactory.Create(Int32 dwParentId, XmlNode pControlNode, IDictionary`2 defines, String filename)
     
    Last edited:

    Users who are viewing this thread

    Top Bottom