2015-04-27, 16:37
Hey, I am creating "main menu"
using List control, then <content></content>
inside I put includes to every button.
for every button I want few parameters, like background image and Button icon, label etc.
so with the background I used "thumb\icon" and for the text I used label.
but I want to show "button Icon" (just an image)
for some reason, I cannot get it done.
In the list control, Im trying to add new image control
and I tried to set SOMETHING to any image path, and without success. (for example tried "videos.png" and nothing happend)
also try to use "label" control - to show if it will display the String - but again - no success... empty string.
the only way that I can show the label, is if I put the control outside of the "itemlayout" and "focuslayout", but there is no point to do so....
so this is one problem.
the second one, is in the includes items,
why I cant use there "onfocus" ?
the "onclicks" works fine.
but If I use
the onfocus part does not work.
I put different values for every item, and the "homeicon" is not changing when I move in the list between buttons... It is remain the same thing (that I set manually).
Also tried to work with "SetProperty" into "home" windows - but it seems that everything in the list is not working....
Just to be clear. the list is inside "include" in the file "includes_home" and in the file "home" i called to that include.
using List control, then <content></content>
inside I put includes to every button.
for every button I want few parameters, like background image and Button icon, label etc.
so with the background I used "thumb\icon" and for the text I used label.
but I want to show "button Icon" (just an image)
for some reason, I cannot get it done.
In the list control, Im trying to add new image control
Code:
<itemlayout width="110" height="110">
<control type="image">
<posx>10</posx>
<posy>5</posy>
<width>75</width>
<height>75</height>
<texture background="true">$INFO[Skin.String(SOMETHING)]</texture>
</control>
also try to use "label" control - to show if it will display the String - but again - no success... empty string.
the only way that I can show the label, is if I put the control outside of the "itemlayout" and "focuslayout", but there is no point to do so....
so this is one problem.
the second one, is in the includes items,
why I cant use there "onfocus" ?
the "onclicks" works fine.
but If I use
Code:
<item id="1">
<label>Videos</label>
<onclick>ActivateWindow(Videos,Files)</onclick>
<onfocus>Skin.SetString(homeicon,videos.png)</onfocus>
<icon>special://skin/backgrounds/videos.jpg</icon>
<thumb>$INFO[Skin.String(Videos_Folder)]</thumb>
</item>
I put different values for every item, and the "homeicon" is not changing when I move in the list between buttons... It is remain the same thing (that I set manually).
Also tried to work with "SetProperty" into "home" windows - but it seems that everything in the list is not working....
Just to be clear. the list is inside "include" in the file "includes_home" and in the file "home" i called to that include.