Dynamic labels and images in the same group?
#1
Okay, so I have these images and labels in a group, which I basically want to be dymanic. For example. The english clock with PM/AM in the end takes up more space than 24H clock.

Here is what it looks like:

Image

Image

How can I make the clockicon move along with the label so the space in between image and label stays?


Thanks!

HTPC Streacom FC8 Evo, BIOSTAR Hi-Fi 3D Motherboard, Intel Core i5 4670T 2.3 GHz, 4GB Kingston HyperX, 500GB 7200 HDD, Streacom IRRC Remote
TV Sony Bravia 32" Full HD
Reply
#2
Put them in a right aligned grouplist and use auto-width for the time label.
Reply
#3
Thanks for the reply, Hitcher! Smile I have tried that, but it doesn't seem to work out, the image still stands the same place :/
HTPC Streacom FC8 Evo, BIOSTAR Hi-Fi 3D Motherboard, Intel Core i5 4670T 2.3 GHz, 4GB Kingston HyperX, 500GB 7200 HDD, Streacom IRRC Remote
TV Sony Bravia 32" Full HD
Reply
#4
Let's have a look at your code.
Reply
#5
Here is the code.
I have tried to apply <align>right</align> to the images, but it didn't have any effect, so i deleted them. The same has been tried for the group control as well.

Code:
<include name="TimeDate&Weather">
    
    <control type="group">

        <control type="label">
            <posx>160r</posx>
            <posy>24</posy>
            <width min="50" max="125">auto</width>
            <label>$INFO[System.Time]</label>
            <font>Header</font>
            <textcolor>fff0f0f0</textcolor>
            <align>right</align>
        </control>
        
        <control type="image">
            <posx>300r</posx>
            <posy>46</posy>
            <width>28</width>
            <height>28</height>
            <texture>icons/clock.png</texture>
        </control>
        
        <control type="label">
            <posx>338r</posx>
            <posy>24</posy>
            <width min="50" max="125">auto</width>
            <label>$INFO[Window(Weather).Property(Current.Temperature)]$INFO[System.TemperatureUnits]</label>
            <font>Header</font>
            <textcolor>fff0f0f0</textcolor>
            <align>right</align>
        </control>
        
        <control type="image">
            <posx>481r</posx>
            <posy>46</posy>
            <width>42</width>
            <height>28</height>
            <texture>icons/cloud.png</texture>
        </control>
    
    </control>
        
    </include>
HTPC Streacom FC8 Evo, BIOSTAR Hi-Fi 3D Motherboard, Intel Core i5 4670T 2.3 GHz, 4GB Kingston HyperX, 500GB 7200 HDD, Streacom IRRC Remote
TV Sony Bravia 32" Full HD
Reply
#6
That's a group not grouplist. Wink

http://wiki.xbmc.org/index.php?title=Group_List_Control

Make the grouplist align right.
Reply
#7
Thanks, that worked! You are a great help mate! Big Grin
HTPC Streacom FC8 Evo, BIOSTAR Hi-Fi 3D Motherboard, Intel Core i5 4670T 2.3 GHz, 4GB Kingston HyperX, 500GB 7200 HDD, Streacom IRRC Remote
TV Sony Bravia 32" Full HD
Reply

Logout Mark Read Team Forum Stats Members Help
Dynamic labels and images in the same group?0