[SOLVED] Create new window but no control
#1
Hello,

I started for the first time creating a skin (I am using the beautiful skin Xperience1080 as base) But after reading the documentation and browsed the forum. I am facing a problem without solution found.
I've created a new custom.xml (called Custom_Video_HomePanel.xml) for my new window just called the id on <onlick> on my home until now all work well. but after i'v clicked on my window I cant move from my item on the fixedlist i've just created.

I've tried <onleft> <onright> <ontop> <onbottom> <onclick> none work Sad

I copy the code from my new window

Quote:<window id="8500">
<defaultcontrol always="true">0</defaultcontrol>

<controls>
<include>CommonItems</include>
<include>FadeBackground</include>
<control type="group">
<control type="button">
<description>A Button</description>
<posx>840</posx>
<posy>972</posy>
<width>36</width>
<height>36</height>
<texturenofocus>buttons/a.png</texturenofocus>
<visible allowhiddenfocus="true">true</visible>
</control>
<control type="label">
<animation effect="fade" start="100" end="45" time="0" condition="true">Conditional</animation>
<font>Font-Condensed-S30-B</font>
<align>right</align>
<posx>1060</posx>
<posy>970</posy>
<width>200</width>
<height>40</height>
<textcolor>FFFFFFFF</textcolor>
<label>Sélectionner</label>
</control>
</control>

<control type="fixedlist">
<description>Video Panel</description>
<posx>400</posx>
<posy>-1466</posy>
<width>2550</width>
<height>1080</height>
<onup>SetFocus(21)</onup>
<onleft>2</onleft>
<orientation>horizontal</orientation>
<scrolltime tween="cubic" easing="out">500</scrolltime>
<viewtype>list</viewtype>
<animation type="WindowOpen" reversible="false">
<effect type="fade" start="0" end="100" time="0" />
<effect type="slide" start="0,0" end="0,1500" delay="1010" time="0" />
</animation>
<itemlayout width="424" height="92">
<control type="group">
<control type="image">
<posx>0</posx>
<posy>0</posy>
<width>406</width>
<height>92</height>
<texture>windows/home/panel_menu-nf.png</texture>
</control>
<control type="label">
<font>Font-Condensed-S52</font>
<align>left</align>
<posx>95</posx>
<posy>0</posy>
<width>406</width>
<height>92</height>
<textcolor>FFC0C0C0</textcolor>
<info>ListItem.Label</info>
</control>
</control>
</itemlayout>
<focusedlayout width="420" height="106">
<control type="image">
<posx>0</posx>
<posy>398</posy>
<width>410</width>
<height>106</height>
<texture>windows/home/panel_menu-f.png</texture>
</control>
<control type="label">
<font>Font-Condensed-S52</font>
<align>left</align>
<posx>95</posx>
<posy>400</posy>
<width>410</width>
<height>106</height>
<textcolor>FF424242</textcolor>
<info>ListItem.Label</info>
</control>
</focusedlayout>
<content>
<item id="458">
<label>$INFO[System.DVDLabel]</label>
<onclick>PlayDVD()</onclick>
<visible>System.HasMediaDVD</visible>
</item>
<item id="459">
<label>Films</label>
<onclick>ActivateWindow(videolibrary)</onclick>
</item>
<item id="460">
<label>Séries TV</label>
<onclick>ActivateWindow(musiclibrary)</onclick>
</item>
<item id="461">
<label>Trailers</label>
<onclick>ActivateWindow(pictures)</onclick>
</item>
</content>
</control>

</controls>
</window>

I would like to know if anyone knows why I can not move into my new window and why the onclick does not work?
Thanks, in advance
Reply
#2
<defaultcontrol always="true">0</defaultcontrol>

You don't have a control with id 0 anywhere. And i've never seen anyone use 0 as a control id, there must be a good reason for that.
Reply
#3
Thanks for your answer,

I've tried without this line ( I had not paid attention when I tried to understand the code) - no change
I've tried with the id of one of my item - no change

EDIT :

Oh I feel a bit stupid, i've tried with an id for my fixed list and specified this id into <defaultcontrol> and that's work

Thanks
Reply
#4
Add the default id to the fixed list control.
Reply
#5
(2013-02-11, 23:27)Hitcher Wrote: Add the default id to the fixed list control.

Thansk for your answer it work perfectly
Reply

Logout Mark Read Team Forum Stats Members Help
[SOLVED] Create new window but no control0