Kodi Community Forum

Full Version: Grouplist with button - focus issue
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
Hi,

what I'm doing wrong?

I have custom skin layout:
Code:
<?xml version="1.0" encoding="utf-8" standalone="yes"?>

<window type="window">

  <controls>

    <control type="grouplist" id="1000">
      <itemgap>100</itemgap>
      <onunfocus>-</onunfocus>
      <onfocus>-</onfocus>
      <usecontrolcoords>false</usecontrolcoords>

      <control type="textbox" id="10001">
        <description>Content</description>
        <width>800</width>
        <height>auto</height>
        <visible>true</visible>
        <aligny>top</aligny>
        <colordiffuse>FFFFFFFF</colordiffuse>
        <font>font12</font>
        <textcolor>FFFFFFFF</textcolor>
        <shadowcolor>66000000</shadowcolor>
        <label> Multiline large text </label>
      </control>

      <control type="button" id ="10002">
        <description>Play</description>
        <label>play</label>
        <width>120</width>
        <height>120</height>
        <focusedcolor>fce7e7e7</focusedcolor>
        <disabledcolor>04ffffff</disabledcolor>
        <pulseonselect>false</pulseonselect>
        <colordiffuse>2DFFFFFF</colordiffuse>
      </control>

      <control type="textbox" id="10003">
        <description>Title</description>
        <width>800</width>
        <height>auto</height>
        <visible>true</visible>
        <colordiffuse>FFFFFFFF</colordiffuse>
        <font>font14</font>
        <textcolor>FFFFFFFF</textcolor>
        <shadowcolor>66000000</shadowcolor>
        <label> Multiline large text </label>
      </control>

    </control>  

  </controls>


</window>

Problem is when scroll to bottom and the button get focus, so the grouplist scroll to top.
https://www.youtube.com/watch?v=-DS59zDx...e=youtu.be
(tested on Android and MacOS version)

Thx for help!
First off you should be asking this in the skinning section... Second the list your showing only has on focusable item which is the button. And with that it has no way to unfocused 'onleft, onright,on up, on down's are missing from the list ... Also not sure what u are meaning by scroll.
Sorry for that, please mod move the thread to skinning section.

I use mouse as controller, with mouse scrollbar scroll to bottom and click with mouse on button.
In full layout I have scrollbal controler and defined onleft, onright etc...

Code:
<?xml version="1.0" encoding="utf-8" standalone="yes"?>

<window type="window">

  <defaultcontrol always="false">100</defaultcontrol>

  <controls>

    <control type="scrollbar" id="100">
      <description>My first scroll bar control</description>
      <left>1240</left>
      <top>0</top>
      <width>40</width>
      <height>720</height>
      <visible>true</visible>
      <pulseonselect>true</pulseonselect>
      <orientation>vertical</orientation>
      <showonepage>true</showonepage>
      <onleft>1000</onleft>
      <onright>1000</onright>
    </control>

    <control type="grouplist" id="1000">
      <itemgap>100</itemgap>
      <pagecontrol>100</pagecontrol>
      <onright>100</onright>
      <onleft>100</onleft>
      <onunfocus>-</onunfocus>
      <onfocus>-</onfocus>
      <usecontrolcoords>false</usecontrolcoords>

      <control type="textbox" id="10001">
        <description>Content</description>
        <width>800</width>
        <height>auto</height>
        <visible>true</visible>
        <aligny>top</aligny>
        <colordiffuse>FFFFFFFF</colordiffuse>
        <font>font12</font>
        <textcolor>FFFFFFFF</textcolor>
        <shadowcolor>66000000</shadowcolor>
        <label> Multiline large text </label>
      </control>

      <control type="button" id ="10002">
        <description>Play</description>
        <label>play</label>
        <width>120</width>
        <height>120</height>
        <focusedcolor>fce7e7e7</focusedcolor>
        <disabledcolor>04ffffff</disabledcolor>
        <pulseonselect>false</pulseonselect>
        <colordiffuse>2DFFFFFF</colordiffuse>
      </control>

      <control type="textbox" id="10003">
        <description>Title</description>
        <width>800</width>
        <height>auto</height>
        <visible>true</visible>
        <aligny>top</aligny>
        <colordiffuse>FFFFFFFF</colordiffuse>
        <font>font14</font>
        <textcolor>FFFFFFFF</textcolor>
        <shadowcolor>66000000</shadowcolor>
        <label> Multiline large text </label>
      </control>

    </control>  

  </controls>


</window>

https://www.youtube.com/watch?v=-DS59zDx...e=youtu.be