PDA

View Full Version : Problems with Panels not showing



nerdynick
June 7th, 2009, 11:58 AM
I have a panel that should be showing a list of items but for some reason it just doesn't show up when the window is drawn. Here is the code for the panel. Can anyone see what I'm doing wrong with it.



<control type="panel" id="100">
<description>The list of Videos</description>
<posx>10</posx>
<posy>10</posy>
<width>1240</width>
<height>588</height>
<itemLayout height="170" width="200">
<control type="image">
<posx>0</posx>
<posy>0</posy>
<width>200</width>
<height>170</height>
<texture>osd_control_zoom_background.png</texture>
</control>
<control type="image">
<posx>50</posx>
<posy>10</posy>
<width>100</width>
<height>75</height>
<info>ListItem.Icon</info>
</control>
<control type="label">
<posx>10</posx>
<posy>90</posy>
<width>180</width>
<height>30</height>
<font>font21</font>
<label>$INFO[ListItem.Label]</label>
<align>left</align>
</control>
</itemLayout>
<focusedLayout height="170" width="200">
<control type="image">
<posx>0</posx>
<posy>0</posy>
<width>200</width>
<height>170</height>
<texture>osd_control_zoom_background.png</texture>
</control>
<control type="image">
<posx>50</posx>
<posy>10</posy>
<width>100</width>
<height>75</height>
<texture>$INFO[ListItem.Icon]</texture>
</control>
<control type="label">
<posx>10</posx>
<posy>90</posy>
<width>180</width>
<height>30</height>
<font>font21</font>
<label>$INFO[ListItem.Label]</label>
<align>left</align>
</control>
</focusedLayout>
<content>
<item id="121">
<label>Some Text</label>
<label2>Some More Text</label2>
<icon>URL to a remote Image</icon>
<thumb>Another URL to a remote Image</thumb>
</item>
<!-- More Items -->
</content>
</control>

Mallet
July 15th, 2009, 02:47 PM
I'm having the same problem. Did you ever resolve this issue?

xmcnuggetx
July 15th, 2009, 03:09 PM
might get more help posting your xml or starting a new thread.

Mallet
July 15th, 2009, 03:27 PM
Here's the list that won't show up. The log doesn't provide any insight as to why this isn't being rendered. Any help would be appreciated.



<control type="list" id="200">
<visible>true</visible>
<posx>127</posx>
<posy>126</posy>
<width>1026</width>
<height>50</height>
<onup>510</onup>
<ondown>111</ondown>
<orientation>horizontal</orientation>
<itemlayout width="200" height="40">
<control type="label">
<label>$INFO[ListItem.Label]</label>
<textcolor>white</textcolor>
<font>font28b</font>
<selectedcolor>red</selectedcolor>
<aligny>center</aligny>
</control>
</itemlayout>
<focuseditemlayout width="200" height="40">
<control type="label">
<label>$INFO[ListItem.Label]</label>
<textcolor>red</textcolor>
<font>font28b</font>
<selectedcolor>red</selectedcolor>
<aligny>center</aligny>
</control>
</focuseditemlayout>
<content>
<item id="201">
<label>Live Shows</label>
</item>
<item id="202">
<label>Movies</label>
</item>
</content>
</control>

Sniperking
July 15th, 2009, 05:31 PM
Is the list hidden behind anything? maybe try moving the list code block to the top or bottom of everything else and see if that helps.

xmcnuggetx
July 17th, 2009, 05:04 AM
try having it be the only thing in the file and see if it shows up.
also make sure there is nothing else with that id

Robert Mela
September 22nd, 2009, 04:02 PM
This is the entire main.xml file. I can get simple labels to display, but the list control doesn't display.

What's the secret ingredient?