Get spincontrol value
#1
I'd like to "dynamically" change the layout of certain elements in the set content dialog based on what is selected in the "this directory contains" system spin control.

So I tried to get it's value by:
stringcompare(Control.GetLabel(1),$LOCALIZE[16018]) for example
Where 1 is the id of a label using $INFO[Control.GetLabel(3)]

But it seems this isn't possible. Anyone else got a different idea to do this?
Reply
#2
You can't get the label but you could do this but it's not save and could stop working sometimes if there are changes...

Movies: substring(Control.GetLabel(33),$LOCALIZE[20383])
TV-Shows: substring(Control.GetLabel(31),$LOCALIZE[20379])
Music videos: substring(Control.GetLabel(31),$LOCALIZE[20346])
Albums: substring(Control.GetLabel(30),$LOCALIZE[20345])
None: substring(Control.GetLabel(30),$LOCALIZE[20380])

Don't know why stringcompare isn't working but substring is.
Image
Reply
#3
Use SubString because the label is wrapped in brackets (...).

For Movies -

PHP Code:
<visible>SubString(Control.GetLabel(3),$LOCALIZE[342])</visible

EDIT: Beaten to it while I was working it out.
Reply
#4
Great Smile Thanks guys
Reply

Logout Mark Read Team Forum Stats Members Help
Get spincontrol value0