Kodi Community Forum

Full Version: label inside grouplist align right issue
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
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>
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
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
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>
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.