Playing with hyperlinkParameter and List Control indexes (1 Viewer)

Rob Hexenmeister

MP Donator
  • Premium Supporter
  • May 12, 2011
    199
    46
    Slaithwaite
    Home Country
    United Kingdom United Kingdom
    Evening all!

    Here's a challenge.

    I would like a button on Basic Home, or wherever, to take me to a specific item in a listcontrol on another page.

    I was wondering if this is even possible and whether hyperlinkParameter could be used. On jumping to the hyperlink, the newly loaded screen I think would have to:

    1. Set the listcontrol to ascending date order
    2. Set #selectedindex to the parameter passed by hyperlinkParameter

    eg: BasicHome(35)

    <control>
    <description>Jump to list button #3</description>
    <type>button</type>
    <id>103</id>
    <posX>300</posX>
    <posY>200</posY>
    <width>190</width>
    <height>32</height>
    <textureFocus>buttonfocus.png</textureFocus>
    <textureNoFocus>buttonnofocus.png</textureNoFocus>
    <label>#latestMediaHandler.tvrecordings.scheduled3.title</label>
    <hyperlinkParameter>3</hyperlinkParameter>
    <hyperlink>601</hyperlink>
    </control>


    >>>>TVSchedulerServer(601)
    How to ....

    Set the listcontrol to ascending date order
    Set the #selectedindex to the hyperlink parameter (in the example '3')
    Set the focus to the listcontrol


    This would open up all sorts of possibilities for my skin theme if it can be done

    Kind regards to all
    RH
     

    CyberSimian

    Test Group
  • Team MediaPortal
  • June 10, 2013
    2,404
    1,456
    Southampton
    Home Country
    United Kingdom United Kingdom
    Set #selectedindex to the parameter passed by hyperlinkParameter
    The skin engine sets #selectedindex to the item in the list that has the focus (usually the first one), and the user can move the focus by using the UP and DOWN keys on the remote control or keyboard.

    If I have understood you correctly, you want to do the reverse -- you want to set #selectedindex to a specific value, and have the skin engine use that to set the focus. I don't think that that is possible :(, but I am happy to be corrected.

    -- from CyberSimian in the UK
     

    Rob Hexenmeister

    MP Donator
  • Premium Supporter
  • May 12, 2011
    199
    46
    Slaithwaite
    Home Country
    United Kingdom United Kingdom
    The skin engine sets #selectedindex to the item in the list that has the focus (usually the first one), and the user can move the focus by using the UP and DOWN keys on the remote control or keyboard.

    If I have understood you correctly, you want to do the reverse -- you want to set #selectedindex to a specific value, and have the skin engine use that to set the focus. I don't think that that is possible :(, but I am happy to be corrected.

    -- from CyberSimian in the UK

    Yes that's more or less correct. I would like to set the #selectedindex to a value passed by hyperlinkParameter and set the focus.

    Of course we would know the control ID of what we want to focus, that should be the easy part by setting the default control on the screen we are jumping to but it is jumping to the correct item in the listcontrol that is the challenge.

    I wonder if anyone will think of a solution or way round! It would create all sorts of possibilities if it could be done.

    :cool: :cautious: :unsure:
     

    Users who are viewing this thread

    Similar threads

    In theory simply need add in MediaPortal/MediaPortal-1 Block like: GUIPropertyManager.SetProperty("focusPosX", _positionX); GUIPropertyManager.SetProperty("focusPosY", _positionY);
    In theory simply need add in MediaPortal/MediaPortal-1 Block like: GUIPropertyManager.SetProperty("focusPosX", _positionX)...
    Following properties would be very useful in my skin design: #posX The X position of the currently focused control #posY...
    Replies
    3
    Views
    534
    Many people found the Lentoid decoder better optimised than LAV for software decoding. If you want to try it, download it from the link below, run reg.bat as an admin to install it and change the HEVC Video settings in MediaPortal Configuration/Codecs and Renderer...
    Many people found the Lentoid decoder better optimised than LAV for software decoding. If you want to try it, download it from the...
    For some unknown reason I can't play HEVC encoded video with MP1 on my system. I have tried every trick I know, but nothing works...
    Replies
    10
    Views
    824
    Finally read that will not work.
    Finally read that will not work.
    How can I learn there is a control with what that ID? Why does not the animation, if it is registered in references.xml? Ie...
    Replies
    7
    Views
    1K
    Generally speaking, I think there should never be a need to have anything else than a remote to control MP - regardless of what you want to do.
    Generally speaking, I think there should never be a need to have anything else than a remote to control MP - regardless of what you...
    Hi, if anybody wants to add a "Visuals" button to the "RadioTime" now playing screen, you can. I came up with this change in the...
    Replies
    6
    Views
    847
    Hi, want to use nested group controls for skin design. Is it possible to set the x/y pos of the outer group only and put some other groups like TableLayout inside. I tried something like <control> <description>outer group</description> <type>group</type> <posX>470</posX> <posY>115</posY>...
    Hi, want to use nested group controls for skin design. Is it possible to set the x/y pos of the outer group only and put some other...
    Hi, want to use nested group controls for skin design. Is it possible to set the x/y pos of the outer group only and put some other...
    Replies
    0
    Views
    480
    Top Bottom