problem with group and grouplist control
#1
hi
i trying to open xml window and in this window i have grouplist and inside i have couple of group control but the problem is the he only show me on group !!!
Code:
<control type="group" id="9010">
    <control type="grouplist" id="900">
        <visible>Container(9000).Hasfocus(0)</visible>
        <posx>290</posx>
        <posy>60</posy>
        <width>750</width>
        <height>530</height>
        <itemgap>-1</itemgap>
        <pagecontrol>-</pagecontrol>
        <onleft>9000</onleft>
        <onright>9000</onright>
        <onup>9001</onup>
        <ondown>9001</ondown>
            <control type="group">
                <control type="radiobutton" id=101666666>
                    <description>Menu Item Next Button</description>
                    <posx>500</posx>
                    <posy>53</posy>
                    <width>33</width>
                    <height>22</height>
                    <label>-</label>
                    <font>-</font>
                    <texturenofocus></texturenofocus>
                    <texturefocus></texturefocus>
                    <onleft>9000</onleft>
                    <onright>305</onright>
                    <onup>300</onup>
                    <ondown>300</ondown>
                </control>
                <control type="radiobutton" id=1015555>
                    <description>Menu Item Prev Button</description>
                    <posx>703</posx>
                    <posy>53</posy>
                    <width>33</width>
                    <height>22</height>
                    <label>-</label>
                    <font>-</font>
                    <texturenofocus></texturenofocus>
                    <texturefocus></texturefocus>
                    <onclick>Control.Move(9003,-1)</onclick>
                    <onleft>304</onleft>
                    <onright>9000</onright>
                    <onup>300</onup>
                    <ondown>300</ondown>
                </control>
                <control type="list" id=1012>
                    <hitrect x="0" y="0" w="0" h="0" />
                    <posx>0</posx>
                    <posy>45</posy>
                    <width>750</width>
                    <height>40</height>
                    <onleft>9000</onleft>
                    <onright>300</onright>
                    <onup>9003</onup>
                    <ondown>9003</ondown>
                    <pagecontrol>-</pagecontrol>
                    <scrolltime>0</scrolltime>
                    <itemlayout height="1" width="750">
                    </itemlayout>
                    <focusedlayout height="40" width="750">
                        <control type="image">
                            <posx>0</posx>
                            <posy>0</posy>
                            <width>750</width>
                            <height>40</height>
                            <texture>MenuItemNF.png</texture>
                            <visible>![Control.HasFocus(304) | Control.HasFocus(305)]</visible>
                        </control>
                        <control type="image">
                            <posx>0</posx>
                            <posy>0</posy>
                            <width>750</width>
                            <height>40</height>
                            <texture>MenuItemFO.png</texture>
                            <visible>[Control.HasFocus(304) | Control.HasFocus(305)]</visible>
                        </control>
                        <control type="label">
                            <posx>10</posx>
                            <posy>0</posy>
                            <width>600</width>
                            <height>40</height>
                            <font>font13</font>
                            <textcolor>grey2</textcolor>
                            <align>left</align>
                            <aligny>center</aligny>
                            <label>blind</label>
                            <visible>![Control.HasFocus(304) | Control.HasFocus(305)]</visible>
                        </control>
                        <control type="label">
                            <posx>10</posx>
                            <posy>0</posy>
                            <width>600</width>
                            <height>40</height>
                            <font>font13</font>
                            <textcolor>white</textcolor>
                            <align>left</align>
                            <aligny>center</aligny>
                            <label>bbbbbbbbb</label>
                            <visible>[Control.HasFocus(304) | Control.HasFocus(305)]</visible>
                        </control>
                        <control type="label">
                            <posx>650</posx>
                            <posy>0</posy>
                            <width>640</width>
                            <height>40</height>
                            <font>font13</font>
                            <textcolor>grey2</textcolor>
                            <align>right</align>
                            <aligny>center</aligny>
                            <label>0%</label>
                        </control>
                        <control type="label">
                            <posx>650</posx>
                            <posy>0</posy>
                            <width>640</width>
                            <height>40</height>
                            <font>font13</font>
                            <textcolor>white</textcolor>
                            <align>right</align>
                            <aligny>center</aligny>
                            <label>0%</label>
                        </control>
                    </focusedlayout>
                    <content>
                        <item id=101>
                            <label>24001</label>
                            <onclick>-</onclick>
                            <icon>special://skin/backgrounds/Addons.jpg</icon>
                            <thumb>$INFO[Skin.String(Home_Custom_Back_Addons_Folder)]</thumb>
                        </item>
                    </content>
                </control>
            </control>
            <control type="group">
                <control type="radiobutton" id=102666666>
                    <description>Menu Item Next Button</description>
                    <posx>500</posx>
                    <posy>53</posy>
                    <width>33</width>
                    <height>22</height>
                    <label>-</label>
                    <font>-</font>
                    <texturenofocus></texturenofocus>
                    <texturefocus></texturefocus>
                    <onleft>9000</onleft>
                    <onright>305</onright>
                    <onup>300</onup>
                    <ondown>300</ondown>
                </control>
                <control type="radiobutton" id=1025555>
                    <description>Menu Item Prev Button</description>
                    <posx>703</posx>
                    <posy>53</posy>
                    <width>33</width>
                    <height>22</height>
                    <label>-</label>
                    <font>-</font>
                    <texturenofocus></texturenofocus>
                    <texturefocus></texturefocus>
                    <onclick>Control.Move(9003,-1)</onclick>
                    <onleft>304</onleft>
                    <onright>9000</onright>
                    <onup>300</onup>
                    <ondown>300</ondown>
                </control>
                <control type="list" id=1022>
                    <hitrect x="0" y="0" w="0" h="0" />
                    <posx>0</posx>
                    <posy>45</posy>
                    <width>750</width>
                    <height>40</height>
                    <onleft>9000</onleft>
                    <onright>300</onright>
                    <onup>9003</onup>
                    <ondown>9003</ondown>
                    <pagecontrol>-</pagecontrol>
                    <scrolltime>0</scrolltime>
                    <itemlayout height="1" width="750">
                    </itemlayout>
                    <focusedlayout height="40" width="750">
                        <control type="image">
                            <posx>0</posx>
                            <posy>0</posy>
                            <width>750</width>
                            <height>40</height>
                            <texture>MenuItemNF.png</texture>
                            <visible>![Control.HasFocus(304) | Control.HasFocus(305)]</visible>
                        </control>
                        <control type="image">
                            <posx>0</posx>
                            <posy>0</posy>
                            <width>750</width>
                            <height>40</height>
                            <texture>MenuItemFO.png</texture>
                            <visible>[Control.HasFocus(304) | Control.HasFocus(305)]</visible>
                        </control>
                        <control type="label">
                            <posx>10</posx>
                            <posy>0</posy>
                            <width>600</width>
                            <height>40</height>
                            <font>font13</font>
                            <textcolor>grey2</textcolor>
                            <align>left</align>
                            <aligny>center</aligny>
                            <label>blinds2</label>
                            <visible>![Control.HasFocus(304) | Control.HasFocus(305)]</visible>
                        </control>
                        <control type="label">
                            <posx>10</posx>
                            <posy>0</posy>
                            <width>600</width>
                            <height>40</height>
                            <font>font13</font>
                            <textcolor>white</textcolor>
                            <align>left</align>
                            <aligny>center</aligny>
                            <label>bbbbbbbbb</label>
                            <visible>[Control.HasFocus(304) | Control.HasFocus(305)]</visible>
                        </control>
                            <control type="label">
                            <posx>650</posx>
                            <posy>0</posy>
                            <width>640</width>
                            <height>40</height>
                            <font>font13</font>
                            <textcolor>grey2</textcolor>
                            <align>right</align>
                            <aligny>center</aligny>
                            <label>0%</label>
                        </control>
                            <control type="label">
                            <posx>650</posx>
                            <posy>0</posy>
                            <width>640</width>
                            <height>40</height>
                            <font>font13</font>
                            <textcolor>white</textcolor>
                            <align>right</align>
                            <aligny>center</aligny>
                            <label>0%</label>
                        </control>
                    </focusedlayout>
                    <content>
                        <item id=102>
                            <label>24001</label>
                            <onclick>-</onclick>
                            <icon>special://skin/backgrounds/Addons.jpg</icon>
                            <thumb>$INFO[Skin.String(Home_Custom_Back_Addons_Folder)]</thumb>
                        </item>
                    </content>
                </control>
            </control>
    </control><
</control>

Image

as you can see i have two group but it only show me on

thank you
ofer
Reply
#2
Your ids aren't correctly formatted (they need quotes) and you have a rouge < at the end.

Try this -

PHP Code:
<control type="group" id="9010">
    <
control type="grouplist" id="900">
        <
visible>Container(9000).Hasfocus(0)</visible>
        <
posx>290</posx>
        <
posy>60</posy>
        <
width>750</width>
        <
height>530</height>
        <
itemgap>-1</itemgap>
        <
pagecontrol>-</pagecontrol>
        <
onleft>9000</onleft>
        <
onright>9000</onright>
        <
onup>9001</onup>
        <
ondown>9001</ondown>
        <
control type="group">
            <
control type="radiobutton" id="101666666">
                <
description>Menu Item Next Button</description>
                <
posx>500</posx>
                <
posy>53</posy>
                <
width>33</width>
                <
height>22</height>
                <
label>-</label>
                <
font>-</font>
                <
texturenofocus/>
                <
texturefocus/>
                <
onleft>9000</onleft>
                <
onright>305</onright>
                <
onup>300</onup>
                <
ondown>300</ondown>
            </
control>
            <
control type="radiobutton" id="1015555">
                <
description>Menu Item Prev Button</description>
                <
posx>703</posx>
                <
posy>53</posy>
                <
width>33</width>
                <
height>22</height>
                <
label>-</label>
                <
font>-</font>
                <
texturenofocus/>
                <
texturefocus/>
                <
onclick>Control.Move(9003,-1)</onclick>
                <
onleft>304</onleft>
                <
onright>9000</onright>
                <
onup>300</onup>
                <
ondown>300</ondown>
            </
control>
            <
control type="list" id="1012">
                <
hitrect x="0" y="0" w="0" h="0" />
                <
posx>0</posx>
                <
posy>45</posy>
                <
width>750</width>
                <
height>40</height>
                <
onleft>9000</onleft>
                <
onright>300</onright>
                <
onup>9003</onup>
                <
ondown>9003</ondown>
                <
pagecontrol>-</pagecontrol>
                <
scrolltime>0</scrolltime>
                <
itemlayout height="1" width="750">
                </
itemlayout>
                <
focusedlayout height="40" width="750">
                    <
control type="image">
                        <
posx>0</posx>
                        <
posy>0</posy>
                        <
width>750</width>
                        <
height>40</height>
                        <
texture>MenuItemNF.png</texture>
                        <
visible>![Control.HasFocus(304) | Control.HasFocus(305)]</visible>
                    </
control>
                    <
control type="image">
                        <
posx>0</posx>
                        <
posy>0</posy>
                        <
width>750</width>
                        <
height>40</height>
                        <
texture>MenuItemFO.png</texture>
                        <
visible>[Control.HasFocus(304) | Control.HasFocus(305)]</visible>
                    </
control>
                    <
control type="label">
                        <
posx>10</posx>
                        <
posy>0</posy>
                        <
width>600</width>
                        <
height>40</height>
                        <
font>font13</font>
                        <
textcolor>grey2</textcolor>
                        <
align>left</align>
                        <
aligny>center</aligny>
                        <
label>blind</label>
                        <
visible>![Control.HasFocus(304) | Control.HasFocus(305)]</visible>
                    </
control>
                    <
control type="label">
                        <
posx>10</posx>
                        <
posy>0</posy>
                        <
width>600</width>
                        <
height>40</height>
                        <
font>font13</font>
                        <
textcolor>white</textcolor>
                        <
align>left</align>
                        <
aligny>center</aligny>
                        <
label>bbbbbbbbb</label>
                        <
visible>[Control.HasFocus(304) | Control.HasFocus(305)]</visible>
                    </
control>
                    <
control type="label">
                        <
posx>650</posx>
                        <
posy>0</posy>
                        <
width>640</width>
                        <
height>40</height>
                        <
font>font13</font>
                        <
textcolor>grey2</textcolor>
                        <
align>right</align>
                        <
aligny>center</aligny>
                        <
label>0%</label>
                    </
control>
                    <
control type="label">
                        <
posx>650</posx>
                        <
posy>0</posy>
                        <
width>640</width>
                        <
height>40</height>
                        <
font>font13</font>
                        <
textcolor>white</textcolor>
                        <
align>right</align>
                        <
aligny>center</aligny>
                        <
label>0%</label>
                    </
control>
                </
focusedlayout>
                <
content>
                    <
item id="101">
                        <
label>24001</label>
                        <
onclick>-</onclick>
                        <
icon>special://skin/backgrounds/Addons.jpg</icon>
                        
<thumb>$INFO[Skin.String(Home_Custom_Back_Addons_Folder)]</thumb>
                    </
item>
                </
content>
            </
control>
        </
control>
        <
control type="group">
            <
control type="radiobutton" id="102666666">
                <
description>Menu Item Next Button</description>
                <
posx>500</posx>
                <
posy>53</posy>
                <
width>33</width>
                <
height>22</height>
                <
label>-</label>
                <
font>-</font>
                <
texturenofocus/>
                <
texturefocus/>
                <
onleft>9000</onleft>
                <
onright>305</onright>
                <
onup>300</onup>
                <
ondown>300</ondown>
            </
control>
            <
control type="radiobutton" id="1025555">
                <
description>Menu Item Prev Button</description>
                <
posx>703</posx>
                <
posy>53</posy>
                <
width>33</width>
                <
height>22</height>
                <
label>-</label>
                <
font>-</font>
                <
texturenofocus/>
                <
texturefocus/>
                <
onclick>Control.Move(9003,-1)</onclick>
                <
onleft>304</onleft>
                <
onright>9000</onright>
                <
onup>300</onup>
                <
ondown>300</ondown>
            </
control>
            <
control type="list" id="1022">
                <
hitrect x="0" y="0" w="0" h="0" />
                <
posx>0</posx>
                <
posy>45</posy>
                <
width>750</width>
                <
height>40</height>
                <
onleft>9000</onleft>
                <
onright>300</onright>
                <
onup>9003</onup>
                <
ondown>9003</ondown>
                <
pagecontrol>-</pagecontrol>
                <
scrolltime>0</scrolltime>
                <
itemlayout height="1" width="750">
                </
itemlayout>
                <
focusedlayout height="40" width="750">
                    <
control type="image">
                        <
posx>0</posx>
                        <
posy>0</posy>
                        <
width>750</width>
                        <
height>40</height>
                        <
texture>MenuItemNF.png</texture>
                        <
visible>![Control.HasFocus(304) | Control.HasFocus(305)]</visible>
                    </
control>
                    <
control type="image">
                        <
posx>0</posx>
                        <
posy>0</posy>
                        <
width>750</width>
                        <
height>40</height>
                        <
texture>MenuItemFO.png</texture>
                        <
visible>[Control.HasFocus(304) | Control.HasFocus(305)]</visible>
                    </
control>
                    <
control type="label">
                        <
posx>10</posx>
                        <
posy>0</posy>
                        <
width>600</width>
                        <
height>40</height>
                        <
font>font13</font>
                        <
textcolor>grey2</textcolor>
                        <
align>left</align>
                        <
aligny>center</aligny>
                        <
label>blinds2</label>
                        <
visible>![Control.HasFocus(304) | Control.HasFocus(305)]</visible>
                    </
control>
                    <
control type="label">
                        <
posx>10</posx>
                        <
posy>0</posy>
                        <
width>600</width>
                        <
height>40</height>
                        <
font>font13</font>
                        <
textcolor>white</textcolor>
                        <
align>left</align>
                        <
aligny>center</aligny>
                        <
label>bbbbbbbbb</label>
                        <
visible>[Control.HasFocus(304) | Control.HasFocus(305)]</visible>
                    </
control>
                    <
control type="label">
                        <
posx>650</posx>
                        <
posy>0</posy>
                        <
width>640</width>
                        <
height>40</height>
                        <
font>font13</font>
                        <
textcolor>grey2</textcolor>
                        <
align>right</align>
                        <
aligny>center</aligny>
                        <
label>0%</label>
                    </
control>
                    <
control type="label">
                        <
posx>650</posx>
                        <
posy>0</posy>
                        <
width>640</width>
                        <
height>40</height>
                        <
font>font13</font>
                        <
textcolor>white</textcolor>
                        <
align>right</align>
                        <
aligny>center</aligny>
                        <
label>0%</label>
                    </
control>
                </
focusedlayout>
                <
content>
                    <
item id="102">
                        <
label>24001</label>
                        <
onclick>-</onclick>
                        <
icon>special://skin/backgrounds/Addons.jpg</icon>
                        
<thumb>$INFO[Skin.String(Home_Custom_Back_Addons_Folder)]</thumb>
                    </
item>
                </
content>
            </
control>
        </
control>
    </
control>
</
control
Reply
#3
Thank you very much for your help
but it diddnt solved my problem :-(

and more idleHuh

mybe somone can show me example of what i need:
i need to make a grouplist
and in each list i need to have a control group that have 2 radiobutton and a lable or a button between them


thank you
Reply
#4
you need to add in width and height to each group or xbmc has no idea how big to draw them and thus space them and since they are groups you will probably need to add all the onup/ondown navigation for them as well
Reply
#5
Jezz_X Wrote:you need to add in width and height to each group or xbmc has no idea how big to draw them and thus space them and since they are groups you will probably need to add all the onup/ondown navigation for them as well

Thank you very much, i add width and height to the group and it solved my problem
Reply

Logout Mark Read Team Forum Stats Members Help
problem with group and grouplist control0