<haspath> tag equivalent in Buttom label
#1
Hello!!
Sorry if this have been asking before, but I really don't know how to search.

I have this buttom control:

Code:
<control type="button" id="603">
                    <label>$LOCALIZE[31177]</label>
                    <label2>$INFO[Skin.String(CustomHomeFanart)]</label2>                    
                    <include>DefaultSettingButton</include>
                    <onclick>Skin.SetString(background_overlay,0)</onclick>
                    <onclick>Skin.SetString(CustomHomeFanart,special://home/addons/skin.mediacenter/extras/backgrounds/)</onclick>
                    <onclick>Skin.SetImage(CustomHomeFanart)</onclick>
                </control>

When is clicked, open a dialog window where I can select a image.
after the image selected, this is show on the skin: 
ImageImage
But, the <label2> is very long and will be scroll.

I know in label controls we can use the tag <haspath> to make a path short (eg. "../../../../pattern3.jpg")
Is there a way to make a equivalent in a button label? (already try to use <textwidth> but this tag will truncate both labels.)

Like this (this is a mockup):
Image


thanks in advance!!!
Reply

Logout Mark Read Team Forum Stats Members Help
<haspath> tag equivalent in Buttom label0