2009-09-04, 12:16
hi all you guru's,
is they away i can use the <altlabel> in a LIST for the Skin.ToggleSetting(), at the moment i have to use 2 items with the same ID but different visible's (one for each button state) i would like the optimise my code so that it only has use 1 button thus saving 50% on coding.
here is what i use now:
i would like to do something like this:
i know this does not work but could i do something similar ?, i even thought about <label2> but it would display in both states. does anyone have any ideas ?
Thanks
is they away i can use the <altlabel> in a LIST for the Skin.ToggleSetting(), at the moment i have to use 2 items with the same ID but different visible's (one for each button state) i would like the optimise my code so that it only has use 1 button thus saving 50% on coding.
here is what i use now:
PHP Code:
<item id="104">
<label>OFF</label>
<onclick>Skin.ToggleSetting(menu1on)</onclick>
<visible>!Skin.HasSetting(menu1on)</visible>
<visible>Container(971).HasFocus(8)</visible>
</item>
<item id="104">
<label>ON</label>
<onclick>Skin.Reset(menu1on)</onclick>
<visible>Skin.HasSetting(menu1on)</visible>
<visible>Container(971).HasFocus(8)</visible>
</item>
i would like to do something like this:
PHP Code:
<item id="104">
<label>OFF</label>
<altlabel>ON</altlabel>
<onclick>Skin.ToggleSetting(menu1on)</onclick>
<selected>Skin.HasSetting(menu1on)</selected>
<visible>Container(971).HasFocus(8)</visible>
</item>
i know this does not work but could i do something similar ?, i even thought about <label2> but it would display in both states. does anyone have any ideas ?
Thanks