label inside grouplist align right issue
#1
i'm having an issue where if i right align labels inside a grouplist they do not show.

if i make it a button it works

i've played around with posx and width, but can't get it. any tips or is this a bug?

thanks

Code:
<control type="grouplist">
        <posx>0</posx>
        <posy>25</posy>
        <description>details labels</description>
        <height>150</height>
        <width>150</width>
        <itemgap>0</itemgap>
        <orientation>vertical</orientation>
        <control type="label">
          <posx>0</posx>
          <posy>278</posy>
          <width>130</width>
          <height>20</height>
          <font>font12</font>
          <align>right</align>
          <aligny>center</aligny>
          <textcolor>grey2</textcolor>
          <shadowcolor>black</shadowcolor>
          <focusedcolor>grey2</focusedcolor>
          <texturefocus>-</texturefocus>
          <texturenofocus>-</texturenofocus>
          <label>$LOCALIZE[406]:</label>
        </control>
      </control>
For python coding questions first see http://mirrors.xbmc.org/docs/python-docs/
Reply
#2
in the list, the alignment is different
you also need to right-align the upper right corner specify as starting point

to align center top center as a starting point

see here:
http://forum.xbmc.org/showthread.php?tid=58193
Reply
#3
Code:
<control type="grouplist">
        <posx>0</posx>
        <posy>25</posy>
        <description>details labels</description>
        <height>150</height>
        <width>130</width>
        <itemgap>0</itemgap>
        <orientation>vertical</orientation>
        <control type="label">
            <posx>0</posx>
            <posy>25</posy>
            <width>130</width>
            <height>20</height>
            <font>font12</font>
            <align>right</align>
            <aligny>center</aligny>
            <textcolor>grey2</textcolor>
            <shadowcolor>black</shadowcolor>
            <label>$LOCALIZE[406]:</label>
        </control>
        <control type="label">
            <posx>0</posx>
            <posy>25</posy>
            <width>130</width>
            <height>20</height>
            <font>font12</font>
            <align>left</align>
            <aligny>center</aligny>
            <textcolor>grey2</textcolor>
            <shadowcolor>black</shadowcolor>
            <label>_________________________________________________</label>
        </control>
    </control>

in my tests the posx and posy in the label controls have no effect.
left and center align properly. right just does not show.

bug? or am i missing a setting
For python coding questions first see http://mirrors.xbmc.org/docs/python-docs/
Reply
#4
Your first posx will have to start where the align right ends up to the left, the first width will have to be the length of both labels and finally the posx for both need changing.

Code:
<control type="grouplist">
        <posx>-130</posx>
        <posy>25</posy>
        <description>details labels</description>
        <height>150</height>
        <width>260</width>
        <itemgap>0</itemgap>
        <orientation>vertical</orientation>
        <control type="label">
            <posx>130</posx>
            <posy>25</posy>
            <width>130</width>
            <height>20</height>
            <font>font12</font>
            <align>right</align>
            <aligny>center</aligny>
            <textcolor>grey2</textcolor>
            <shadowcolor>black</shadowcolor>
            <label>$LOCALIZE[406]:</label>
        </control>
        <control type="label">
            <posx>130</posx>
            <posy>25</posy>
            <width>130</width>
            <height>20</height>
            <font>font12</font>
            <align>left</align>
            <aligny>center</aligny>
            <textcolor>grey2</textcolor>
            <shadowcolor>black</shadowcolor>
            <label>_________________________________________________</label>
        </control>
    </control>
Reply
#5
if that works for you, then i have something wrong with my build win directx. the right align labels do not show.

thanks for both of your help.
For python coding questions first see http://mirrors.xbmc.org/docs/python-docs/
Reply

Logout Mark Read Team Forum Stats Members Help
label inside grouplist align right issue0