2019-11-02, 15:41
Not really. I work with variables and with a init setup that I also use to provide a skin resetting button https://github.com/sualfred/skin.embuary..._Reset.xml
I know that Marcel had a "skinsettings" feature implemented, but I always found it too complicated and it did not saved me any time in coding. I have currently no plans to implement something like this.
For me the preselect works fine.
preselect=0 -> First item gehts selected
preselect=1 -> Second item gehts selected
preselect=2 -> Third item gehts selected
preseletct -1 -> Nothing gets selected
You have to built a variable and use that for preselect index if it was changed once.
I know that Marcel had a "skinsettings" feature implemented, but I always found it too complicated and it did not saved me any time in coding. I have currently no plans to implement something like this.
For me the preselect works fine.
Code:
<label>test</label>
<onclick>SetProperty(Dialog.1.Label,label1 1,home)</onclick>
<onclick>SetProperty(Dialog.1.Label2,label2 1,home)</onclick>
<onclick>SetProperty(Dialog.1.Icon,DefaultVideo.png,home)</onclick>
<onclick>SetProperty(Dialog.1.BuiltIn,Skin.String(Default,0),home)</onclick>
<onclick>SetProperty(Dialog.2.Label,label1 2,home)</onclick>
<onclick>SetProperty(Dialog.2.Label2,label2 2,home)</onclick>
<onclick>SetProperty(Dialog.2.BuiltIn,Skin.String(Default,1),home)</onclick>
<onclick>RunScript(script.embuary.helper,action=createselect,header=$LOCALIZE[137],preselect=$VAR[preselect],usedetails=true,window=home)</onclick>
preselect=0 -> First item gehts selected
preselect=1 -> Second item gehts selected
preselect=2 -> Third item gehts selected
preseletct -1 -> Nothing gets selected
You have to built a variable and use that for preselect index if it was changed once.
Code:
<variable name="preselect">
<value condition="String.IsEqual(Skin.String(Default),1)">1</value>
<value>0</value>
</variable>