2014-06-08, 20:43
Hi Everybody,
I have a panel control that shows a bunch of icons for the user to choose an Image that will be used on a Home Item of my skin.
I have created a button control within the focused layout, so that when the users clicks on an item a string will be set, with the path of the selected image.
I am having problems with this onclick behaviour, apparently the onclick behaviour is not beeing executed at all.
Is there something I have missed? or are this type of onclick simply behaviours not supported with the new Content filling option of gotham?
I have a panel control that shows a bunch of icons for the user to choose an Image that will be used on a Home Item of my skin.
I have created a button control within the focused layout, so that when the users clicks on an item a string will be set, with the path of the selected image.
I am having problems with this onclick behaviour, apparently the onclick behaviour is not beeing executed at all.
Is there something I have missed? or are this type of onclick simply behaviours not supported with the new Content filling option of gotham?
Code:
<control type="panel" id="4">
<top>50</top>
<left>1290</left>
<width>1190</width>
<height>630</height>
<itemlayout height="70" width="70">
<control type="image">
<width>65</width>
<height>65</height>
<texture>tile.png</texture>
</control>
<control type="image">
<width>65</width>
<height>65</height>
<texture>$INFO[ListItem.Label,Icons/]</texture>
<bordersize>5</bordersize>
</control>
</itemlayout>
<focusedlayout height="70" width="70">
<control type="button">
<width>65</width>
<height>65</height>
<onclick>Skin.SetString(CustomHomeTile.Image,Icon/$INFO[ListItem.Label])</onclick>
<texturefocus>button.png</texturefocus>
</control>
<control type="image">
<width>65</width>
<height>65</height>
<texture>$INFO[ListItem.Label,Icons/]</texture>
<bordersize>5</bordersize>
</control>
</focusedlayout>
<content target="url">special://skin/media/Icons/</content>
</control>