Skin question

Discussion in 'Skins and Plugins Installer (MPEI)' started by doskabouter, October 27, 2019.

  1. doskabouter
    • Premium Supporter

    doskabouter Community Plugin Dev

    Joined:
    September 27, 2009
    Messages:
    2,826
    Likes Received:
    790
    Location:
    Nuenen
    Ratings:
    +1,158 / 1
    Home Country:
    Netherlands Netherlands
    Show System Specs
    I'm still using an old skin (black glass), but it's getting some warnings, and I want to understand them and possibly fix them.

    example:
    [WARN ] - GUIWindow:OnWindowLoaded: 'C:\ProgramData\Team MediaPortal\MediaPortal\Skin\Black Glass\myHome.xml' is missing control id 200 (window property: lblDate)

    Can somebody explain to me what is wrong here? Because I do see a date on the homescreen...


     
    • Like Like x 1
  2. Google AdSense Guest Advertisement



    to hide all adverts.
  3. CyberSimian
    • Team MediaPortal

    CyberSimian Test Group

    Joined:
    June 10, 2013
    Messages:
    1,670
    Likes Received:
    553
    Gender:
    Male
    Location:
    Southampton
    Ratings:
    +978 / 3
    Home Country:
    United Kingdom United Kingdom
    Show System Specs
    The old way of building panels is for the C# function to pre-define certain controls. The skin author can define the properties such as position, size, and colour for the control, but the skin author cannot access the value of the control (this is supplied by the C# function).

    The new way of building panels is for relevant values to be defined as built-in skin variables, which allows the skin author to access the value and use it to control other aspects of the panel.

    Most panels are a mixture of both techniques, as some constructs would be very difficult to define entirely by built-in skin variables (e.g. the list of recorded TV).

    Some older panels diagnose an error if one of the pre-defined controls is missing from the xml file. This is the error that you have noticed. However, it does not necessarily mean that the panel displays wrongly, since the skin author may be using a newer built-in skin variable to provide the information, instead of the pre-defined control.

    The usual way to prevent these error messages to to provide a control definition with the correct properties, but which is positioned off-screen (so that it does not affect the appearance of the panel).

    -- from CyberSimian in the UK
     
    • Thank You! Thank You! x 2
    • Like Like x 1
    • Agree Agree x 1
Loading...

Users Viewing Thread (Users: 0, Guests: 0)

  1. This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
    By continuing to use this site, you are consenting to our use of cookies.
    Dismiss Notice
  • About The Project

    The vision of the MediaPortal project is to create a free open source media centre application, which supports all advanced media centre functions, and is accessible to all Windows users.

    In reaching this goal we are working every day to make sure our software is one of the best.

             

  • Support MediaPortal!

    The team works very hard to make sure the community is running the best HTPC-software. We give away MediaPortal for free but hosting and software is not for us.

    Care to support our work with a few bucks? We'd really appreciate it!