2014-11-18, 00:10
Hi all
I'm using the list control to input the list of items in my skin window.
I'm not really sure if this will works. I want to know that can I use this control to add the list of programs in a horizontal?
here is the one I use:
if it will works, i want to know what method in python that I can use to set the label, width, height, position x and y?
I'm using the list control to input the list of items in my skin window.
I'm not really sure if this will works. I want to know that can I use this control to add the list of programs in a horizontal?
here is the one I use:
Code:
<control type="list" id="4326">
<posx>12</posx>
<posy>305</posy>
<width>300</width>
<height>271</height>
<onup>4325</onup>
<ondown>4325</ondown>
<viewtype label="list">list</viewtype>
<orientation>horizontal</orientation>
<pagecontrol>7</pagecontrol>
<itemlayout height="37" width="300">
<control type="image">
<posx>0</posx>
<posy>10</posy>
<width>300</width>
<height>34</height>
<texture>channels_bar1.png</texture>
</control>
<control type="label">
<posx>3</posx>
<posy>10</posy>
<width>300</width>
<height>34</height>
<font>Font_Bold25</font>
<aligny>center</aligny>
<selectedcolor>FF000000</selectedcolor>
<textcolor>0xFFFFFFFF</textcolor>
<align>left</align>
<info>ListItem.Label</info>
</control>
</itemlayout>
<focusedlayout height="37" width="300">
<control type="image">
<posx>0</posx>
<posy>10</posy>
<width>300</width>
<height>34</height>
<visible>!Control.HasFocus(4326)</visible>
<texture>changelang_yellow.png</texture>
</control>
<control type="image">
<posx>0</posx>
<posy>10</posy>
<height>34</height>
<width>300</width>
<visible>Control.HasFocus(4326)</visible>
<texture>channels_bar1.png</texture>
</control>
<control type="label">
<posx>3</posx>
<posy>10</posy>
<width>300</width>
<height>34</height>
<font>Font_Bold25</font>
<aligny>center</aligny>
<selectedcolor>0xFFFFFFFF</selectedcolor>
<textcolor>FF000000</textcolor>
<align>left</align>
<info>ListItem.Label</info>
</control>
</focusedlayout>
</control>
if it will works, i want to know what method in python that I can use to set the label, width, height, position x and y?