Kodi Community Forum
problem with grouplist and group controls - Printable Version

+- Kodi Community Forum (https://forum.kodi.tv)
+-- Forum: Development (https://forum.kodi.tv/forumdisplay.php?fid=32)
+--- Forum: Skinning (https://forum.kodi.tv/forumdisplay.php?fid=12)
+--- Thread: problem with grouplist and group controls (/showthread.php?tid=206732)



problem with grouplist and group controls - Pr0ph3cyTiger - 2014-10-18

hi guys
i'm trying to open xml window and in this window i have grouplist and group controls. I have couple of group control but the problem is it will only show one group.

Code:
<control type="grouplist" id="4126">
            <description>My first group list control</description>
            <posx>12</posx>
            <posy>315</posy>
            <width>1024</width>
            <height>300</height>
            <itemgap>10</itemgap>
            <pagecontrol>7</pagecontrol>
            <scrolltime tween="sine" easing="out">200</scrolltime>
            <orientation>vertical</orientation>
            <usecontrolcoords>false</usecontrolcoords>
            <visible>true</visible>
            <onup>2</onup>
            <ondown>3</ondown>
            <onleft>2</onleft>
            <onright>4</onright>
            
            <!--ROW 1-->
            <control type="group">
                <control type="button" id="4127">
                    <description>Channel Button 1</description>
                    <posx>0</posx>
                    <posy>0</posy>
                    <width>350</width>
                    <height>34.5</height>
                    <visible>false</visible>
                    <texturefocus>channels_bar1.png</texturefocus>
                    <texturenofocus>changelang_yellow.png</texturenofocus>
                    <label></label>
                    <font>Font_Bold25</font>
                    <textcolor></textcolor>
                    <disabledcolor></disabledcolor>
                    <align>left</align>
                    <aligny>center</aligny>
                    <textoffsetx></textoffsetx>
                    <textoffsety></textoffsety>
                    <pulseonselect></pulseonselect>
                    <onclick></onclick>
                    <onfocus>-</onfocus>
                    <onup>2</onup>
                    <ondown>3</ondown>
                    <onleft>1</onleft>
                    <onright>1</onright>
                </control>
                
                <control type="button" id="4128">
                    <description>Program Button 1</description>
                    <posx>368</posx>
                    <posy>0</posy>
                    <width>100</width>
                    <height>34.5</height>
                    <visible>true</visible>
                    <texturefocus>channels_bar1.png</texturefocus>
                    <texturenofocus>changelang_yellow.png</texturenofocus>
                    <label></label>
                    <font>Font_Bold25</font>
                    <textcolor>0xFF000000</textcolor>
                    <disabledcolor>0xFFFFFFFF</disabledcolor>
                    <align>left</align>
                    <aligny>center</aligny>
                    <textoffsetx></textoffsetx>
                    <textoffsety></textoffsety>
                    <pulseonselect></pulseonselect>
                    <onclick></onclick>
                    <onfocus>-</onfocus>
                    <onup>2</onup>
                    <ondown>3</ondown>
                    <onleft>1</onleft>
                    <onright>1</onright>
                </control>
            </control>
            
            <!--ROW 2-->
            <control type="group">
                <control type="button" id="4129">
                    <description>Channel Button 2</description>
                    <posx>0</posx>
                    <posy>45</posy>
                    <width>350</width>
                    <height>34.5</height>
                    <visible>true</visible>
                    <texturefocus>channels_bar1.png</texturefocus>
                    <texturenofocus>changelang_yellow.png</texturenofocus>
                    <label></label>
                    <font>Font_Bold25</font>
                    <textcolor></textcolor>
                    <disabledcolor></disabledcolor>
                    <align>left</align>
                    <aligny>center</aligny>
                    <textoffsetx></textoffsetx>
                    <textoffsety></textoffsety>
                    <pulseonselect></pulseonselect>
                    <onclick></onclick>
                    <onfocus>-</onfocus>
                    <onup>2</onup>
                    <ondown>3</ondown>
                    <onleft>1</onleft>
                    <onright>1</onright>
                </control>
                
                <control type="button" id="4130">
                    <description>Program Button 1</description>
                    <posx>368</posx>
                    <posy>0</posy>
                    <width>100</width>
                    <height>34.5</height>
                    <visible>true</visible>
                    <texturefocus>channels_bar1.png</texturefocus>
                    <texturenofocus>changelang_yellow.png</texturenofocus>
                    <label></label>
                    <font>Font_Bold25</font>
                    <textcolor>0xFF000000</textcolor>
                    <disabledcolor>0xFFFFFFFF</disabledcolor>
                    <align>left</align>
                    <aligny>center</aligny>
                    <textoffsetx></textoffsetx>
                    <textoffsety></textoffsety>
                    <pulseonselect></pulseonselect>
                    <onclick></onclick>
                    <onfocus>-</onfocus>
                    <onup>2</onup>
                    <ondown>3</ondown>
                    <onleft>1</onleft>
                    <onright>1</onright>
                </control>
            </control>
        </control>


Do you know how I can show two groups control?


RE: problem with grouplist and group controls - Hitcher - 2014-10-19

You need to give each group dimensions otherwise the grouplist control doesn't know where the first one ends.